Description Usage Arguments Details Value
View source: R/modifyEquCons.R
First, we calculate the set S of points being feasible in the inequalities and feasible with margin cobra$currentEps in the equalities. If S is non-empty, take the point from S with best objective as cobra$xbest. If S is empty (there are no feasible points): If the new point has lower maxViol than the maxViol of cobra$xbest, take it as the new cobra$xbest.
1 | updateCobraEqu(cobra, xNew)
|
cobra |
an object of class COBRA (a long list) |
xNew |
the last evaluated point |
Called from updateSaveCobra.
cobra
, an object of class COBRA, with potentially modified cobra$xbest,
cobra$fbest, cobra$ibest, cobra$noProgressCount
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.