DOC PREVIEW
UT Dallas CS 6385 - 03LP_su

This preview shows page 1-2 out of 6 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 6 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Linear ProgrammingThe objective function is of the formZ = c1x1+ c2x2+ . . . + cnxnwherec1, . . . , cnare given constantsx1, . . . , xnare the variables to be optimized.In the standard form of LP the constraints are formulated asa11x1+ a12x2+ . . . + a1nxn= b1a21x1+ a22x2+ . . . + a2nxn= b2......am1x1+ am2x2+ . . . + amnxn= bmx1≥ 0...xn≥ 0We either want to minimize or maximize the objective function, subject tothe constraints. That is, given the parameters aij, bi, cias input, we want tofind values for the xivariables, such that all constraints are satisfied and theobjective function takes minimum or maximum value, depending on whetherwe want to minimize or maximize.Form the mathematical point of view, minimization and maximization areequivalent, since minimizing an objective function Z means the same as max-imizing −Z, and vice versa.Thus, a linear programming problem (or linear program, for short; abbrevi-ated LP) looks like this for minimization:min Z = c1x1+ c2x2+ . . . + cnxnsubject toa11x1+ a12x2+ . . . + a1nxn= b1a21x1+ a22x2+ . . . + a2nxn= b2......am1x1+ am2x2+ . . . + amnxn= bmx1≥ 0...xn≥ 0For maximization it would look the same, just the “min” would be replacedby “max”.An important restriction is that we only allow linear expressions, both in theobjective function and in the constraints. A linear expression (in terms ofthe xivariables) can only be one of the following:• a constant• a variable ximultiplied by a constant (such as cixi)• sum of expressions that belong to either the above types(Examples: c1x1+ c2x2+ . . . + cnxn, or 3x4− 2).No other types of expressions are allowed. In particular, no product of vari-ables, no logical case separation, etc.The standard form LP in vector-matrix notation:min Z = cxsubject toAx = bx ≥ 0Other formulations are also possible. An often used version is shown below(some textbooks call this one the standard form, rather than the one above):min Z = cxsubject toAx ≥ bx ≥ 0Note: x is meant a column vector, which implies that c must be row a vector,so that the cx product makes sense. If c is a column vector, then we writecT. Usually it is clear from the context, which vector is column and whichis row, so often the distinction is not shown explicitely.When we write an inequality between vectors, then it means it holds com-ponentwise. For example, Ax ≤ b means that when we take matrix-vectorproduct Ax, then each component of the resulting vector is ≤ than the cor-responding component of the vector b. Similarly, x ≥ 0 means that eachcomponent of x is ≥ 0.The different formulations can be easily converted into each other, usuallyat the price of increasing the number of variables.Why does it make sense to increase the number of variables? Because thestandard form may be advantageous (For example, an LP solver programmay require the input in standard form).Exercises1. Convert the following LP into standard form:min Z = 5x − 6ysubject to2x − 3y ≥ 6x − y ≤ 4x ≥ 3Solution: Set y = x2− x3for the free (unbounded) variable y, using thefact that any number can be expressed as the difference of two nonnegativenumbers. Furthermore, introduce a slack variable in each inequality. Theseslack variables, as discussed in class, “fill the gap” between the two sides ofthe inequality, to convert it into an equation.For example, the first constraint 2x − 3y ≥ 6 will be transformed as follows.Let us use x1instead of x, for uniform notation. The variable y will bereplaced by x2− x3, where x2, x3≥ 0. Then we get2 x1|{z}=x− 3 (x2− x3)| {z }this was y− x4|{z}slack variable= 6.Notice that this will indeed force the original left-hand side (the part beforex4) greater than or equal to 6, as the original inequality required. The reasonis that x4≥ 0 must hold, since all variables are forced to be nonnegative inthe standard from. Therefore, the expression before x4must be ≥ 6, sincesubtracting a positive (or 0) quantity makes it equal to 6. If the originalinequality had the ≤ direction, then the only difference would be that wewould add the slack variable, rather than subtracting it.After transforming the other inequalities, too, and also substituting the oldvariables in the objective function with the new ones, we get the entire stan-dard form:min Z = 5x1− 6x2+ 6x3subject to2x1− 3x2+ 3x3− x4= 6x1− x2+ x3+ x5= 4x1− x6= 3x1, x2, x3, x4, x5, x6≥


View Full Document

UT Dallas CS 6385 - 03LP_su

Documents in this Course
assn1

assn1

2 pages

38rel2

38rel2

5 pages

Report

Report

3 pages

networks

networks

18 pages

lp2

lp2

44 pages

lp2 (2)

lp2 (2)

27 pages

lp1(1)

lp1(1)

21 pages

integer1

integer1

50 pages

FrankR2

FrankR2

3 pages

duality

duality

28 pages

CMST

CMST

44 pages

hw4

hw4

3 pages

for 1

for 1

11 pages

ENCh02

ENCh02

33 pages

pree

pree

2 pages

new  3

new 3

2 pages

new  2

new 2

2 pages

hw4a

hw4a

2 pages

T2_Sol

T2_Sol

4 pages

ISM3

ISM3

8 pages

hw4_sol

hw4_sol

6 pages

Elm04_06

Elm04_06

11 pages

atn proj2

atn proj2

20 pages

12CUT1

12CUT1

8 pages

09Ford

09Ford

23 pages

08FLOW

08FLOW

6 pages

40REL40

40REL40

5 pages

39rel3

39rel3

5 pages

38arel2

38arel2

5 pages

37REL1

37REL1

3 pages

24TABU

24TABU

3 pages

22DYNPR

22DYNPR

3 pages

21B&C

21B&C

2 pages

20BBEX0

20BBEX0

3 pages

19BB

19BB

5 pages

14CAPBUD0

14CAPBUD0

11 pages

35BRXCH

35BRXCH

2 pages

34COMB

34COMB

4 pages

32CAPAS

32CAPAS

4 pages

31QUEUE

31QUEUE

3 pages

Load more
Download 03LP_su
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view 03LP_su and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view 03LP_su 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?