← Back to subsystem2
LocalConstraints2¶
Source: userfiles/NewUseCase_Template/subsystem2/LocalConstraints2.py
Local constraints module for Subsystem 2 in the new use-case.
This module defines the LocalConstraints2 class which implements the local equality and inequality constraints specific to Subsystem 2 in the distributed design optimization framework.
Classes¶
LocalConstraints2¶
Inherits from: LocalConstraintsInterface
Local constraints class for Subsystem 2 in the new use-case.
Methods¶
init(self) → None
Initialize the LocalConstraints2 instance.
evaluateEqualityLocalConstraints(self, subsystem: LocalSubSystemBasis) → None
Evaluate equality local constraints for Subsystem 2.
Computes the equality constraint values from the subsystem responses, scales them using the appropriate ScalerConstraint, and stores the result in the subsystem.
Args:
subsystem: The local subsystem instance providing responses
and scaling variables.
evaluate_Jacobian_EqualityLocalConstraints(self, subsystem: LocalSubSystemBasis) → None
Evaluate the Jacobian of the local equality constraints.
Args:
subsystem: The local subsystem instance.
evaluate_Hessians_EqualityLocalConstraints(self, subsystem: LocalSubSystemBasis) → None
Evaluate the Hessians of the local equality constraints.
Args:
subsystem: The local subsystem instance.
evaluateInEqualityLocalConstraints(self, subsystem: LocalSubSystemBasis) → None
Evaluate inequality local constraints for Subsystem 2.
Computes the inequality constraint values from the subsystem responses, scales them using the appropriate ScalerConstraint, and stores the result in the subsystem.
Args:
subsystem: The local subsystem instance providing responses
and scaling variables.
evaluate_Jacobian_InEqualityLocalConstraints(self, subsystem: LocalSubSystemBasis) → None
Evaluate the Jacobian of the local inequality constraints.
Args:
subsystem: The local subsystem instance.
evaluate_Hessians_InEqualityLocalConstraints(self, subsystem: LocalSubSystemBasis) → None
Evaluate the Hessians of the local inequality constraints.
Args:
subsystem: The local subsystem instance.