simplex
dual
compute the dual of a linear program
Calling Sequence
Parameters
Description
Examples
dual(f, C, y)
f
-
linear expression
C
set of linear inequalities
y
name
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.
with⁡simplex:
dual⁡x+y,3⁢x+4⁢y≤4,4⁢x+3⁢y≤5,z
4⁢z1+5⁢z2,1≤3⁢z1+4⁢z2,1≤4⁢z1+3⁢z2
See Also
convert/stdle
Download Help Document