saealib.AsyncEvaluationSubmitStage#

class saealib.AsyncEvaluationSubmitStage(scheduler, planner, feedback_builder=None, algorithm=None, callback_manager=None)[source]#

Bases: Stage

Plan and submit one request to an asynchronous scheduler.

Parameters:

Methods

__init__

Initialize base Stage attributes.

contract

Return this stage's structural and direct state-access contract.

execute

Execute this stage and return the updated state.

to_pseudocode

Render this stage as a LaTeX algorithmic line.

to_text

Render this stage as a plain-text algorithmic line.

Method Details

AsyncEvaluationSubmitStage.__init__(scheduler, planner, feedback_builder=None, algorithm=None, callback_manager=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.

  • scheduler (Any)

  • planner (EvaluationPlanner)

  • feedback_builder (FeedbackBuilder | None)

  • algorithm (Any)

  • callback_manager (Any)

Return type:

None

AsyncEvaluationSubmitStage.contract()[source]#

Return this stage’s structural and direct state-access contract.

Return type:

ComponentContract

AsyncEvaluationSubmitStage.execute(state)[source]#

Execute this stage and return the updated state.

Parameters:

state (OptimizationState) – Current optimization state.

Returns:

Updated state.

Return type:

OptimizationState

AsyncEvaluationSubmitStage.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 \State indent steps).

Returns:

LaTeX algorithmic fragment.

Return type:

str

AsyncEvaluationSubmitStage.to_text(*, expand=False, indent=0)#

Render this stage as a plain-text algorithmic line.

Parameters:
  • expand (bool)

  • indent (int)

Return type:

str