several approaches for solving problems with piecewise linear functions. More...
Go to the source code of this file.
Namespaces | |
| piecewise | |
Functions | |
| def | convex_comb_agg (model, a, b) | 
| def | convex_comb_agg_log (model, a, b) | 
| def | convex_comb_dis (model, a, b) | 
| def | convex_comb_dis_log (model, a, b) | 
| def | convex_comb_sos (model, a, b) | 
| def | gray (i) | 
| def | mult_selection (model, a, b) | 
Variables | |
| list | a = [-10, 10, 15, 25, 30, 35, 40, 45, 50, 55, 60, 70] | 
| A = model.addCons(3 * X + 4 * Y <= 250, "A") | |
| list | b = [-20, -20, 15, -21, 0, 50, 18, 0, 15, 24, 10, 15] | 
| B = model.addCons(7 * X - 2 * Y + 3 * u == 170, "B") | |
| model = Model("multiple selection") | |
| u = model.addVar(vtype="C", name="u") | |
| w | |
| X | |
| Y | |
| z | |
several approaches for solving problems with piecewise linear functions.
Definition in file piecewise.py.