checkSol
Check the optimization solution against supplied constraints
Syntax
[ok,msg] = checkSol(optiObj)
[ok,msg] = checkSol(optiObj,tol)
Description
[ok,msg] = checkSol(optiObj) validates the solution saved in the OPTI object (by using solve) against all constraints specified in the problem. If the solution is valid against all constraints, it will return 1, otherwise it will return 0 in ok, with the problem detected in msg.
[ok,msg] = checkSol(optiObj,tol) validates the solution using the specified tolerance for constraint violations. The default is 1e-6.
Copyright © 2011-2013 Jonathan Currie (I2C2)