Implements the method of [Choo2006] Chootinan & Chen "Constraint handling in genetic algorithms using a gradient-based repair method", Computers & Operations Research 33 (2006), p. 2263.
repairChootinan(x, gReal, rbf.model, cobra, checkIt = FALSE)
an infeasible solution vector \(\vec{x}\) of dimension d
a vector \((g_1(\vec{x}),\ldots,g_m(\vec{x}), h_1(\vec{x}),\ldots,h_r(\vec{x}))\) holding the real constraint values at \(\vec{x}\)
the constraint surrogate models
parameter list, we need here
lower
lower bounds of search region
upper
upper bounds of search region
ri
a list with all parameters for repairChootinan
trueFuncForSurrogate
if TRUE (only for diagnostics), use the true constraint
functions instead of the constraint surrogate models
rbf.model
fn
true functions, only needed in case of
trueFuncForSurrogate==TRUE
[FALSE] if TRUE, perform a check whether the returned solution is really
feasible. Needs access to the true constraint function conFunc
z
, a vector of dimension d
with a repaired (hopefully feasible) solution