Opt.srand

Sets the seed for stochastic optimization.

Equivalent in C API: nlopt_srand

struct Opt
void
srand
(
uint seed
)

Examples

auto opt = Opt(Algorithm.ldMMA, 2);
opt.srand(3215);

Meta