← Back to subsystem0
LocalObjective0¶
Source: userfiles/Sellar/subsystem0/LocalObjective0.py
Local objective module for Sellar subsystem 0.
Defines the local objective function contribution from subsystem 0 in the Sellar distributed optimization problem.
Classes¶
LocalObjective0¶
Inherits from: LocalObjectiveInterface
Local objective class for Sellar subsystem 0.
Evaluates the local objective contribution: x1^2 + z2 + y1 + exp(-y2).
Attributes:
None specific to this class; inherits from LocalObjectiveInterface.
Methods¶
init(self) → None
Initialize LocalObjective0 instance.
evaluateLocalObjective(self, subsystem: LocalSubSystemBasis) → None
Evaluate the local objective function for subsystem 0.
Args:
subsystem: The local subsystem basis containing state information.
evaluate_Gradient_LocalObjective(self, subsystem: LocalSubSystemBasis) → None
Compute the gradient of the local objective function.
Args:
subsystem: The local subsystem basis containing state information.
evaluate_Hessian_LocalObjective(self, subsystem: LocalSubSystemBasis) → None
Compute the Hessian of the local objective function.
Args:
subsystem: The local subsystem basis containing state information.