atomica.optimization.ExponentialSpendingAdjustment¶
- class atomica.optimization.ExponentialSpendingAdjustment(prog_name, t, t_0, t_end, p1, a1, a2)[source]¶
Bases:
Adjustment
Parametric overwrite example
This is an example of an Adjustment that uses a function of several variables to compute time-dependent spending.
Attributes
A list of
Adjustables
Methods
Return initial values for ASD
update_instructions
- adjustables¶
A list of
Adjustables
- get_initialization(progset, instructions)¶
Return initial values for ASD
- Parameters:
progset (
ProgramSet
) – TheProgramSet
being used for the optimizationinstructions (
ProgramInstructions
) – The initial instructions
- Return type:
- Returns:
A list of initial values, one for each adjustable