You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/reference/model.md
+1-3Lines changed: 1 addition & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -546,11 +546,9 @@ In all constraints, if a parameter is not defined, the default value is used. If
546
546
547
547
- The output profile is used to model demands
548
548
549
-
In theory, these constraints must be equalities, but in practice, when combined with the total\_energy\_out constraint, one of these constraints becomes redundant, which causes numerical issues for the solver.
550
-
One solution is to remove one of these constraints; another is to keep them all and change them to '≥' or '≤' (this works the same).
Copy file name to clipboardExpand all lines: src/core/model.jl
+3-7Lines changed: 3 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,11 @@ function build_model(input::Input, model::Union{JuMP.Model,Nothing}=nothing)
21
21
if model ===nothing
22
22
# Gurobi
23
23
model = JuMP.Model(Gurobi.Optimizer)
24
-
#set_attribute(model, "Crossover", 0)
25
-
#set_attribute(model, "Method", 2)
24
+
set_attribute(model, "Crossover", 0)
25
+
set_attribute(model, "Method", 2)
26
26
27
27
# HiGHS
28
28
# model = JuMP.Model(HiGHS.Optimizer)
29
-
model = JuMP.Model(Gurobi.Optimizer)
30
29
end
31
30
vars =add_vars!(model, input)
32
31
constraints =add_constraints!(model, vars, input)
@@ -515,24 +514,21 @@ function add_constraints!(model, vars, input::Input)::Dict
515
514
end
516
515
end
517
516
518
-
# In theory, these constraints should be equalities, but in practice, when combined with the energy_out constraints, one of these constraints becomes redundant, which causes numerical issues for the solver.
519
-
# One solution is to remove one of these constraints; another is to keep them all and change them to '≥' or '≤' (this works the same).
0 commit comments