saealib.EvaluationAcknowledgeStage#
- class saealib.EvaluationAcknowledgeStage(evaluator, cbmanager=None)[source]#
Bases:
StageAcknowledge committed updates and account for their evaluations.
- Parameters:
evaluator (Evaluator)
cbmanager (CallbackManager | None)
Methods
Initialize base Stage attributes. |
|
Return this stage's structural and direct state-access contract. |
|
Execute this stage and return the updated state. |
|
Render this stage as a LaTeX algorithmic line. |
|
Render this stage as a plain-text algorithmic line. |
Method Details
- EvaluationAcknowledgeStage.__init__(evaluator, cbmanager=None)[source]#
Initialize base Stage attributes.
- Parameters:
name (str, optional) – Override the class-level
name.label (str, optional) – Override the class-level
label.notation (str, optional) – Override the class-level
notation.evaluator (Evaluator)
cbmanager (CallbackManager | None)
- Return type:
None
- EvaluationAcknowledgeStage.contract()[source]#
Return this stage’s structural and direct state-access contract.
- Return type:
- EvaluationAcknowledgeStage.execute(state)[source]#
Execute this stage and return the updated state.
- Parameters:
state (OptimizationState) – Current optimization state.
- Returns:
Updated state.
- Return type:
OptimizationState
- EvaluationAcknowledgeStage.to_pseudocode(*, expand=False, indent=0)#
Render this stage as a LaTeX algorithmic line.
- Parameters:
expand (bool) – If True and this stage has sub-stages, recursively expand them.
indent (int) – Current indentation level (number of
\Stateindent steps).
- Returns:
LaTeX algorithmic fragment.
- Return type:
str
- EvaluationAcknowledgeStage.to_text(*, expand=False, indent=0)#
Render this stage as a plain-text algorithmic line.
- Parameters:
expand (bool)
indent (int)
- Return type:
str