insert_last

pyoptex.doe.cost_optimal.codex.insert.insert_last(new_run, state, params)[source]

Inserts a new run at the last position and returns a new state.

Parameters

new_runnp.array(1, 1d)

The new run to be added to the design.

stateState

The state from which to start.

paramsParameters

The simulation parameters.

Returns

new_stateState

The new state after inserting the run at the last position.