We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a66865 commit f932237Copy full SHA for f932237
src/jump.jl
@@ -64,6 +64,20 @@ function JuMP.add_variable(
64
name * "_assess",
65
),
66
)
67
+
68
+ # forecast variables can't have bounds
69
+ if JuMP.has_lower_bound(forecast.plan)
70
+ @warn "Forecast variable lower bound will be removed."
71
+ JuMP.delete_lower_bound(forecast.plan)
72
+ JuMP.delete_lower_bound(forecast.assess)
73
+ end
74
75
+ if JuMP.has_upper_bound(forecast.plan)
76
+ @warn "Forecast variable upper bound will be removed."
77
+ JuMP.delete_upper_bound(forecast.plan)
78
+ JuMP.delete_upper_bound(forecast.assess)
79
80
81
push!(model.forecast_vars, forecast)
82
return forecast
83
end
0 commit comments