Purpose
Returns the dual solution value of a general constraint
Synopsis
function getdual(c:genctr) :real
Argument
Return value
The dual solution value of the constraint, or zero if the problem has not been
optimized or the constraint is not part of the current problem.
Example
The following example solves a problem and retrieves the dual
value of a constraint:
declarations
c1, c2: genctr
x, y: mpvar
end-declarations
x <= 10
y <= 10
c1:= x^2 + y^2 <= 4 - x
c2:= x*y >= 1
SLPloadprob(x+y)
SLPmaximize
writeln("c1 dual value=",getdual(c1))
Related topics
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.