add_managed_instance#

ParametricDesignStudy.add_managed_instance(instance: ManagedInstance, execution_block_idx: int | None = None, execution_option: ExecutionOption = <ExecutionOption.ACTIVE: 1>) None#

Add a managed instance to the design study.

Parameters:
instanceManagedInstance

The managed instance to be added.

execution_block_idxint, optional

The index of the execution block to which the instance should be added. If not provided, new execution block is created at the end of the execution order.

execution_optionExecutionOption, optional

The execution option for the instance. Default is ExecutionOption.ACTIVE.

Raises:
IndexError

If the provided execution block index is out of range.