CADETProcess.optimization.OptimizationProblem.set_variables

CADETProcess.optimization.OptimizationProblem.set_variables#

OptimizationProblem.set_variables(x: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | complex | bytes | str | _NestedSequence[complex | bytes | str], evaluation_objects: int | list | object | None = -1) list[source]#

Set the values from the x-vector to the EvaluationObjects.

Parameters:
xarray_like

Value of all optimization variables in untransformed space.

evaluation_objectslist or EvaluationObject or None or -1

Evaluations objects to set variables in. If None, do not set variables. If -1, variables are set to all evaluation objects. The default is -1.

Returns:
list

Evaluation Objects with set parameters.

Raises:
CADETProcessError

If x does not have correct length.

ValueError

If value of variable exceeds bounds.

See also

OptimizationVariable
evaluate