Helper for cobraPhaseII: make some assertion tests,
update elements in object cobra, including data frames df and df2,
and - if cobra$saveIntermediate==TRUE - save cobra in subdir results/.
Most importantly cobra$xbest, cobra$fbest, cobra$ibest are updated. They characterize the
best feasible point (least violating point if no feasible point was found so far) and
influence the next starting point.
updateSaveCobra(
cobra,
ev1,
subMin,
sigmaD,
penaF,
gama,
EPS,
fitFuncPenalRBF,
distRequirement,
fitnessSurrogate = cobra$fitnessSurrogate
)an object of class COBRA, this is a (long) list containing all settings
from cobraPhaseII
a list filled by calls to evalReal. We need here the elements xNew,
feas, feasPred, feval, optimizerConvergence, optimizationTime, predY, predVal
see cobraPhaseII
see cobraPhaseII
see cobraPhaseII
see cobraPhaseII
see cobraPhaseII
helper function from cobraPhaseII
helper function from cobraPhaseII
the model used for predSoluFunc
cobra, an object of class COBRA,
enhanced here by the following elements (among others):
dfdata frame with summary of the optimization run (see cobraPhaseII)
df2data frame with additional summary information (see cobraPhaseII)
dftrdata frame with additional summary information for TR(see cobraPhaseII)
fbestthe best feasible objective value found
xbestthe point in input space yielding the best feasible objective value
ibestthe corresponding iteration number (row of cobra$df, of cobra$A)
fbestArrayvector of all fbest
xbestArrayvector of all xbest
Note: the elements A, Fres, Gres of cobra are set in updateInfoAndCounters,
an internal function of cobraPhaseII.