Mixed Integer Programming, Sos2, Piecewise Linear Modeling, Cplex, Gurobi.
objective (Gurobi implementation) Note: In order to run the code snippet below, you need a valid installation of the Gurobi solver. Gurobi is not open-source. However, free licenses are available for researchers and students. Now that we’ve seen how to interpret SOS2 and their link to piecewise