dual - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


simplex

  

dual

  

compute the dual of a linear program

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

dual(f, C, y)

Parameters

f

-

linear expression

C

-

set of linear inequalities

y

-

name

Description

• 

The procedure dual(f, C, y) computes the dual of a linear program which is in standard inequality form.

• 

The expression f is the linear objective function to be maximized, subject to the linear inequalities C. These inequalities are in the special form produced by convert/stdle. The name y is used to construct the names y1, y2, ... for the dual variables.

• 

The resulting dual is returned as an expression sequence:  objective, constraints.

• 

The command with(simplex,dual) allows the use of the abbreviated form of this command.

Examples

withsimplex:

dualx+y,3x+4y4,4x+3y5,z

4z1+5z2,13z1+4z2,14z1+3z2

(1)

See Also

convert/stdle