init
- pyoptex.doe.cost_optimal.init.init(params, n=1, complete=False)[source]
Initialize a design with n randomly sampled runs. They must be within the constraints.
Parameters
- params
Parameters The simulation parameters.
- nint
The number of runs to initialize
- completebool
False means use the coordinates and prior specified in params, otherwise, no coords or prior are used. Can be used to perform a complete sample of the design space.
Returns
- runnp.array(2d)
The resulting design.
- params