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

stateState

The state from which to sample.

paramsParameters

The simulation parameters.

prevent_insertbool

Whether to prevent the removal of the recently inserted run.

Returns

new_stateState

The new state after inserting the run.