# Timeseries power model without forecast - ACOPF

**URL:** <https://discourse.julialang.org/t/timeseries-power-model-without-forecast-acopf/126846>\
**Category:** Optimization (Mathematical)\
**Tags:** question, package, jump, power-flow\
**Created:** [March 12, 2025, 4:58am UTC](https://discourse.julialang.org/t/timeseries-power-model-without-forecast-acopf/126846 "2025-03-12T04:58:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PB-vines](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pb-vines/32/213401_2.png) [@PB-vines](https://discourse.julialang.org/u/PB-vines)\
**Post date:** [March 12, 2025, 4:58am UTC](https://discourse.julialang.org/t/timeseries-power-model-without-forecast-acopf/126846/1 "2025-03-12T04:58:58Z")

</div>

Hello,  
I have a model in PowerSystems.jl that looks like this:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/7/f/7ffd611feb4719d4ce1a4dc423863324473b9a73.png)  
I just want to run an acopf and dcopf with the data I have imported - I do not want to do any forecasting. However, I cannot get past the DecisionModel() as it tells me I do not have any forecasted data. Is there a way I can run an ACOPF without forecasting in PowerSimulations.jl?

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [March 12, 2025, 6:24am UTC](https://discourse.julialang.org/t/timeseries-power-model-without-forecast-acopf/126846/2 "2025-03-12T06:24:42Z")

</div>

This is a question for @jdlara-berkeley.

Do you want to solve a single-period OPF problem? You might want to use PowerModels.jl instead.

---

<div class="post-metadata">

**Author:** ![PB-vines](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pb-vines/32/213401_2.png) [@PB-vines](https://discourse.julialang.org/u/PB-vines)\
**Post date:** [March 12, 2025, 3:39pm UTC](https://discourse.julialang.org/t/timeseries-power-model-without-forecast-acopf/126846/3 "2025-03-12T15:39:03Z")

</div>

@odow @jdlara-berkeley I went with PowerSimulations.jl since I wanted to run this as a timeseries model (744 hours/timesteps) and it did not seem as though that was the purpose of PowerModels.jl.

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [March 12, 2025, 7:40pm UTC](https://discourse.julialang.org/t/timeseries-power-model-without-forecast-acopf/126846/4 "2025-03-12T19:40:07Z")

</div>

I"m not much help here, I’m afraid.

There’s a slack for Sienna that might be faster than waiting for Jose to look at discourse questions:

> **[Slack](https://nrel-sienna.slack.com/join/shared_invite/zt-glam9vdu-o8A9TwZTZqqNTKHa7q3BpQ)**

---

<div class="post-metadata">

**Author:** ![PB-vines](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pb-vines/32/213401_2.png) [@PB-vines](https://discourse.julialang.org/u/PB-vines)\
**Post date:** [March 21, 2025, 5:56am UTC](https://discourse.julialang.org/t/timeseries-power-model-without-forecast-acopf/126846/5 "2025-03-21T05:56:30Z")

</div>

Thanks @odow - I believe I have the proper set up with network\_model\_ed = NetworkModel(ACPPowerModel; use\_slacks=true, power\_flow\_evaluation=PowerFlows.ACPowerFlow()). Curious if you have ran into issues with the build!() - I keep getting │ KeyError: key “DENVER 52 1” not found |  
yet,

- 

```
for load in get_components(PowerLoad, sys)

```

- 

```
ts_keys = InfrastructureSystems.get_time_series_keys(load)

```

- 

```
println("Load: ", load.name, " | Bus: ", load.bus.name, " | Time Series Keys: ", ts_keys)

```

- 

```
end

```

prints: `Load: DENVER 52 1 | Bus: DENVER 52 1 | Time Series Keys: TimeSeriesKey[ForecastKey(DeterministicSingleTimeSeries, "DENVER 52 1", DateTime("2021-01-01T00:00:00"), Millisecond(3600000), Hour(8760), Hour(1), 1, Dict{String, Any}()), StaticTimeSeriesKey(SingleTimeSeries, "DENVER 52 1", DateTime("2021-01-01T00:00:00"), Millisecond(3600000), 8760, Dict{String, Any}())]`  
and

- 

```
has_component(PowerLoad, sys, "DENVER 52 1") # Should return `true`

```

prints: `true’

---

<div class="post-metadata">

**Author:** ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)\
**Post date:** [March 21, 2025, 6:03am UTC](https://discourse.julialang.org/t/timeseries-power-model-without-forecast-acopf/126846/6 "2025-03-21T06:03:31Z")

</div>

@joaquimg might be able to answer this too.
