Opt.copy

Copies an instance of Opt to new instance.

Equivalent in C API: nlopt_copy

struct Opt
copy
()

Examples

auto opt1 = Opt(Algorithm.ldMMA, 10);

auto opt2 = opt1.copy();

Meta