insert_optimal

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

Inserts a new run in the optimal position by simultaneously maximizing the metric and minimizing the cost increase.

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.