Skip to content

Commit

Permalink
Fix mga test
Browse files Browse the repository at this point in the history
  • Loading branch information
datejada committed Dec 3, 2024
1 parent e2f6f02 commit e9b972a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/run_spineopt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ function create_model(mip_solver, lp_solver, use_direct_model, use_model_names,
instance = first(model())
mip_solver = _mip_solver(instance, mip_solver)
lp_solver = _lp_solver(instance, lp_solver)
if model_type(model=instance) === :mga_algorithm && !add_bridges
if model_algorithm(model=instance) === :mga_algorithm && !add_bridges
add_bridges = true
@warn "Bridges are required for MGA algorithm - adding them"
end
Expand Down

0 comments on commit e9b972a

Please sign in to comment.