saealib.FeedbackStage#

class saealib.FeedbackStage(builder=None)[ソース]#

ベースクラス: Stage

Copy evaluated objective channels into the offspring batch.

パラメータ:

builder (FeedbackBuilder | None)

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

FeedbackStage.__init__(builder=None)[ソース]#

Initialize base Stage attributes.

パラメータ:
  • name (str, optional) -- Override the class-level name.

  • label (str, optional) -- Override the class-level label.

  • notation (str, optional) -- Override the class-level notation.

  • builder (FeedbackBuilder | None)

戻り値の型:

None

FeedbackStage.contract()[ソース]#

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

戻り値の型:

ComponentContract

FeedbackStage.execute(state)[ソース]#

Execute this stage and return the updated state.

パラメータ:

state (OptimizationState) -- Current optimization state.

戻り値:

Updated state.

戻り値の型:

OptimizationState

FeedbackStage.to_pseudocode(*, expand=False, indent=0)#

Render this stage as a LaTeX algorithmic line.

パラメータ:
  • expand (bool) -- If True and this stage has sub-stages, recursively expand them.

  • indent (int) -- Current indentation level (number of \State indent steps).

戻り値:

LaTeX algorithmic fragment.

戻り値の型:

str

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

Render this stage as a plain-text algorithmic line.

パラメータ:
  • expand (bool)

  • indent (int)

戻り値の型:

str