Purpose
Get the
solution value of a quadratic expression.
Synopsis
function getsol(q:qexp):real
Argument
Return value
Solution value or 0.
Example
uses "mmquad"
declarations
x,y,z: mpvar
Profit:qexp
end-declarations
... ! (Define and solve the problem)
writeln("Profit value: ", getsol(Profit))
writeln("Evaluation of an expression: ", getsol(x*y+5*z^2))
Further information
This function returns the evaluation of a given quadratic
expression using the current (primal) solution values of its variables.
Note that the solution value of a variable is 0 if the problem has
not been solved or the variable is not contained in the problem that
has been solved.
If you have any comments or suggestions about these pages,
please send mail to docs@dashoptimization.com.