getsol
getsol |
Purpose
Get the solution value of an expression from a solution object.
Synopsis
function getsol(ms:mpsol,v:mpvar):real
function getsol(ms:mpsol,c:linctr):real
function getsol(ms:mpsol,nl:nlctr):real
Arguments
ms
|
A solution object
|
v
|
A decision variable
|
c
|
A linear constraint
|
nl
|
A non linear constraint
|
Return value
Solution value or 0.
Further information
This function returns an evaluation of an expression using the provided solution object as solution values for the decision variables.
Related topics
Module