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.
- state
State The state from which to start.
- params
Parameters The simulation parameters.
Returns
- new_state
State The new state after inserting the run.