Quickguide PIECE-WISE LINEAR Problem

From TomWiki
Jump to navigationJump to search

Notice.png

This page is part of the Quickguide Manual. See Quickguide.

The general formulation in TOMLAB for a piece-wise linear programming problem is:


where , , and . The variables , the index subset of are restricted to be integers. Equality constraints are defined by setting the lower bound equal to the upper bound, i.e. for constraint : . A subset of the variables are piece-wise linear.

Solving piece-wise linear problem is mainly recommended by using TOMLAB /CPLEX or similar solver.

The following file defines a test case in TOMLAB. It is possible to use two syntax variations when defining the problem (see help addPwLinFunc for more information).

File: tomlab/quickguide/piecewiseQG.m

Open the file for viewing, and execute piecewiseQG in Matlab.