Skip to content

Commit 7b0f3b3

Browse files
committed
fixed #82
1 parent d17c918 commit 7b0f3b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StructJuMP.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ end
300300
function JuMP.constraints_string(print_mode, model::StructuredModel)
301301
strings = String[]
302302
# Sort by creation order, i.e. ConstraintIndex value
303-
constraints = sort(collect(model.constraints), by = c -> c.first.value)
303+
constraints = sort(collect(model.constraints), by = c -> c.first)
304304
for (index, constraint) in constraints
305305
push!(strings, JuMP.constraint_string(print_mode, constraint))
306306
end

0 commit comments

Comments
 (0)