embcol.problem.Constraint¶
- class embcol.problem.Constraint(function, jacobian, hessian, n_outputs, lower_bound=-inf, upper_bound=inf)[source]¶
Bases:
objectConstraint for parameters.
- Parameters:
function (callable) – Constraint function. The signature must be
(params) -> values, whereparamsis a one-dimensional array of parameters andvaluesis a one-dimensional array of constrained values.jacobian (callable) – Jacobian of a constraint function. The signature must be
(params) -> values, whereparamsis a one-dimensional array of parameters andvaluesis a Jacobian matrix.values[i, k]is a derivative of theith output with respect to thekth parameter.hessian (callable) – Hessian of a constraint function. The signature must be
(params) -> values, whereparamsis a one-dimensional array of parameters andvaluesis a Hessian matrix.values[i, k1, k2]is a second derivative of theith output with respect to thek1th andk2th parameters.n_outputs (
int) – Number of outputs of a constraint function.lower_bound (
float, optional) – Lower bound of a constraint function.upper_bound (
float, optional) – Upper bound of a constraint function.
Attributes
Constraint function.
Hessian of a constraint function.
Jacobian of a constraint function.
Lower bound of a constraint function.
Number of outputs of a constraint function.
Upper bound of a constraint function.
Methods