Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jul 9, 2023
1 parent dfd4046 commit e1cba35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MSPFormat.jl
Original file line number Diff line number Diff line change
Expand Up @@ -215,15 +215,15 @@ function read_from_file(
if lower_bound isa Number && isfinite(lower_bound)
JuMP.set_lower_bound(x, lower_bound)
if lower_bound > 0
graph.initial_root_state[sym_name] = lower_bound
model.initial_root_state[sym_name] = lower_bound
end
elseif lower_bound isa Vector{Any}
ω_lower_bound[x] = lower_bound
end
if upper_bound isa Number && isfinite(upper_bound)
JuMP.set_upper_bound(x, upper_bound)
if upper_bound < 0
graph.initial_root_state[sym_name] = upper_bound
model.initial_root_state[sym_name] = upper_bound
end
elseif upper_bound isa Vector{Any}
ω_upper_bound[x] = upper_bound
Expand Down

0 comments on commit e1cba35

Please sign in to comment.