linear_constraints module¶
Build matrices from linear constraints for solvers.
- gemseo.algos.opt.core.linear_constraints.build_bounds_matrices(bounds, upper)[source]¶
Return the constraint matrices corresponding to bound.
- gemseo.algos.opt.core.linear_constraints.build_constraints_matrices(constraints, constraint_type)[source]¶
Build the constraints matrices associated with passed linear constraints.
- Parameters:
constraints (Iterable[MDOLinearFunction]) – The linear constraints.
constraint_type (MDOFunction.ConstraintType) – The type of constraint.
- Returns:
The left-hand side matrix, the right-hand side vector
- Return type:
tuple[ndarray | None, ndarray | None]