How do I model logical expressions? Greg Glockner August 12, 2020 15:47 Updated Follow Version 7.0 added General Constraints, which can be used to model many types of logical expressions. More complex logical expressions can be created via combinations of general constraints. Further information Model types that Gurobi can solve How do I model piecewise-linear functions? Related articles How do I model piecewise-linear functions? Model types that Gurobi can solve Can I add locally valid constraints in Gurobi MIP? Where can I learn more about building optimization models? Why does an MPS file produce a completely different objective with different solvers?