Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dirkschumacher
Created July 13, 2022 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dirkschumacher/ffb3c4aaef3bd535599704d11e49cf22 to your computer and use it in GitHub Desktop.
Save dirkschumacher/ffb3c4aaef3bd535599704d11e49cf22 to your computer and use it in GitHub Desktop.
# 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