Skip to content

Instantly share code, notes, and snippets.

Created July 13, 2022 18:51
What would you like to do?
# if this produced a valid tree
quote(a <= b <= c)
# then we could do
add_constraint(lower[i] <= X[i] <= upper[i], i = 1:n)
# instead of
add_constraint(X[i] <= upper[i], i = 1:n)
add_constraint(lower[i] <= X[i], i = 1:n)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment