Skip to content

Commit

Permalink
Lazily create storage in StructOfConstraints (#1315)
Browse files Browse the repository at this point in the history
  • Loading branch information
odow authored May 12, 2021
1 parent 66cbdb6 commit 339482b
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 166 deletions.
2 changes: 1 addition & 1 deletion src/Utilities/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ macro model(
sets = vector_sets
end
voc = map(sets) do set
return :(VectorOfConstraints{$(_typedfun(funs[i])),$(_typedset(set))})
return :(VectorOfConstraints{$(_typed(funs[i])),$(_typed(set))})
end
return _struct_of_constraints_type(cname, voc, true)
end
Expand Down
Loading

0 comments on commit 339482b

Please sign in to comment.