Mixed Integer Programming, Sos2, Piecewise Linear Modeling, Cplex, Gurobi.
reach an optimal value. (In this example the solution is almost instantaneous since the problem is very small.) As you see, GUROBI, like CPLEX, provides an API to SOS2 constraints. Using the solver’s own implementation has 2 advantages: We don’t have to encode the set of equations ourselves (they