create_cost_optimal_codex_design

pyoptex.doe.cost_optimal.codex.wrapper.create_cost_optimal_codex_design(params, nreps=10, nsims=7500, validate=True)[source]

Creates an optimal design for the specified factors, using the CODEX algorithm.

Parameters

paramsParameters

The simulation parameters.

nrepsint

The number of random start repetitions. Must be larger than zero.

nsimsint

The number of simulations (annealing steps) to run the algorithm for.

validatebool

Whether to validate each state.

Returns

Ypd.DataFrame

A pandas dataframe with the best found design. The design is decoded and denormalized.

best_stateState

The state corresponding to the returned design. Contains the encoded design, model matrix, costs, metric, etc.