Specy / rooc

An optimization modeling language with solvers for OR and CO problems
https://rooc.specy.app
GNU General Public License v3.0
37 stars 1 forks source link

Add logic operators #7

Open Specy opened 9 months ago

Specy commented 9 months ago

Logic operators should be added like the OR, AND, IMPLIES, NOT, and also the relative blocks for it, this could be something like:

and(i in 0..5) { x_i } ==> false

or

x_0 & x_1 | x_2 & !x_3

constraints are written as a single expression, and all constraints must be true for the model to be valid, all variables inside this constraints must be defined as booleans