Learn R Programming

SACOBRA (version 1.2)

repairChootinan: Repair an infeasible solution with the method of Chootinan.

Description

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.

Usage

repairChootinan(x, gReal, rbf.model, cobra, checkIt = FALSE)

Arguments

x

an infeasible solution vector \(\vec{x}\) of dimension d

gReal

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}\)

rbf.model

the constraint surrogate models

cobra

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

checkIt

[FALSE] if TRUE, perform a check whether the returned solution is really feasible. Needs access to the true constraint function conFunc

Value

z, a vector of dimension d with a repaired (hopefully feasible) solution

See Also

repairInfeasRI2, cobraPhaseII