getsol


Purpose
Get the solution value of a variable or a linear expression (constraint).
Synopsis
function getsol(v:mpvar):real
function getsol(c:linctr):real
Arguments
A linear constraint
A decision variable
Return value
Solution value or 0.
Further information
This function returns the (primal) solution value of a variable if the problem has been solved successfully and the variable is contained in the problem (otherwise 0). If used with a constraint, it returns the evaluation of the corresponding linear expression using the current solution.
Related topics
getdual, getrcost, getobjval.


If you have any comments or suggestions about these pages, please send mail to support@fico.com.

© Copyright 2001-2013 Fair Isaac Corporation. All rights reserved.