simulate

pyoptex.doe.cost_optimal.codex.simulation.simulate(params, nsims=100, validate=False)[source]

Performs the simulated annealing algorithm (SA). This is the main loop calling all of the operators.

Parameters

paramsParameters

The simulation parameters.

nsimsint

The number of simulation iterations, accepted or rejected.

validatebool

Whether to validate intermediate steps. Mostly used for debugging purposes.

Returns

best_stateState

The best found state containing the encoded design matrix, model matrix, costs, metric, etc.

interruptedbool

Whether the simulation was interrupted by the user.