FEASIBILITY_SENSE returned by SDDP.deterministic_equivalent()
WalterMadelim opened this issue · comments
Hi, odow. I'm learning your package through
Documentation / Examples / (the 1st) Fast: the hydro thermal problem
function fast_hydro_thermal()
model = SDDP.PolicyGraph(...
) do sp, t
...
end
det = SDDP.deterministic_equivalent(model, Gurobi.Optimizer)
set_silent(det)
# Notice the output here:
println(objective_sense(det)) # FEASIBILITY_SENSE
println(objective_function(det)) # 5 p#1 + 2.5 p#2 + 2.5 p#2
JuMP.optimize!(det)
println(objective_value(det)) # 10.0
...
return
end
fast_hydro_thermal()
It seems the JuMP model det
returned from your SDDP.deterministic_equivalent()
function is having an objective with FEASIBILITY_SENSE.
I'm not quite clear about the meaning.
Hmm. I think this is a bug. I don't really use deterministic_equivalent
, and I wouldn't encourage it (it scales very badly). Let me take a look.
It looks like we set the objective function but not the objective sense:
SDDP.jl/src/deterministic_equivalent.jl
Lines 152 to 159 in 1f8d36b
Thanks🙂
No problem. A release will be out sometime today: #674