CADETProcess.optimization.NSGA2.check_x0

Contents

CADETProcess.optimization.NSGA2.check_x0#

NSGA2.check_x0(optimization_problem: OptimizationProblem, x0: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str]) tuple#

Check the initial guess x0 for an optimization problem.

Parameters:
optimization_problemOptimizationProblem

The optimization problem instance to which x0 is related.

x0array_like

The initial guess for the optimization problem. It can be a single individual or a population.

Returns:
tuple

A tuple containing a boolean flag indicating if x0 is valid, and the potentially modified x0.