We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d17c918 commit 7b0f3b3Copy full SHA for 7b0f3b3
src/StructJuMP.jl
@@ -300,7 +300,7 @@ end
300
function JuMP.constraints_string(print_mode, model::StructuredModel)
301
strings = String[]
302
# Sort by creation order, i.e. ConstraintIndex value
303
- constraints = sort(collect(model.constraints), by = c -> c.first.value)
+ constraints = sort(collect(model.constraints), by = c -> c.first)
304
for (index, constraint) in constraints
305
push!(strings, JuMP.constraint_string(print_mode, constraint))
306
end
0 commit comments