Skip to content

Set macro

Marcelo Forets edited this page Mar 4, 2020 · 5 revisions

Task: define convenience macros for modeling with sets.

Related libraries:

For instance,

H = HalfSpace([1., 1.], 2.0) # x + y <= 2

@variables x y
H = @set x + y <= 2

Clone this wiki locally