Skip to content

Commit

Permalink
Merge pull request #83 from StructJuMP/kkim
Browse files Browse the repository at this point in the history
fixed #82
  • Loading branch information
kibaekkim committed Oct 9, 2020
2 parents d17c918 + 7b0f3b3 commit e0b66e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StructJuMP.jl
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ end
function JuMP.constraints_string(print_mode, model::StructuredModel)
strings = String[]
# Sort by creation order, i.e. ConstraintIndex value
constraints = sort(collect(model.constraints), by = c -> c.first.value)
constraints = sort(collect(model.constraints), by = c -> c.first)
for (index, constraint) in constraints
push!(strings, JuMP.constraint_string(print_mode, constraint))
end
Expand Down

0 comments on commit e0b66e9

Please sign in to comment.