Skip to content

Commit

Permalink
Add option to disable names
Browse files Browse the repository at this point in the history
  • Loading branch information
datejada committed Dec 3, 2024
1 parent 6dfccfa commit 53ee9e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/run_spineopt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ function create_model(mip_solver, lp_solver, use_direct_model)
end
m = Base.invokelatest(_do_create_model, mip_solver, use_direct_model)
m.ext[:spineopt] = SpineOptExt(instance, lp_solver, m_mp, model_by_stage)
JuMP.set_string_names_on_creation(m, false)
m
end

Expand Down
1 change: 1 addition & 0 deletions test/data_structure/temporal_structure.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ end

function _model()
m = Model()
JuMP.set_string_names_on_creation(m, false)
m.ext[:spineopt] = SpineOpt.SpineOptExt(first(model()), nothing)
m
end
Expand Down

0 comments on commit 53ee9e4

Please sign in to comment.