remove_optimal_onebyone
- pyoptex.doe.cost_optimal.codex.remove.remove_optimal_onebyone(state, params, prevent_insert=False)[source]
Removes runs from the design until within the cost constraints. Runs are selected and removed one-by-one for minimal metric loss and maximal cost reduction.
Parameters
- state
State The state from which to sample.
- params
Parameters The simulation parameters.
- prevent_insertbool
Whether to prevent the removal of the recently inserted run.
Returns
- new_state
State The new state after inserting the run.
- state