File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -135,15 +135,10 @@ and new constraint fixing to original forecast variables.
135
135
function build_plan_model_forecast_params (model:: Model )
136
136
# adds parametrized forecast variables using MOI.Parameter
137
137
forecast_size = size (model. forecast_vars)[1 ]
138
- model. plan_forecast_params = @variable (
139
- model. plan,
140
- _forecast[1 : forecast_size] in MOI. Parameter .(zeros (forecast_size))
141
- )
142
- # fixes old and new prediction variables together
138
+ model. plan_forecast_params = plan_forecast_vars (model)
143
139
@constraint (
144
140
model. plan,
145
- plan_forecast_fix,
146
- model. plan_forecast_params .== plan_forecast_vars (model)
141
+ model. plan_forecast_params .∈ MOI. Parameter .(zeros (forecast_size))
147
142
)
148
143
end
149
144
You can’t perform that action at this time.
0 commit comments