Opt.getAlgorithm

Get Algorithm

Equivalent in C API: nlopt_get_dimension

struct Opt
getAlgorithm
()

Return Value

Type: auto

The member of Algorithm matching the raw nlopt_algorithm

Examples

auto opt = Opt(Algorithm.gnESCH, 2);

assert(opt.getAlgorithm == Algorithm.gnESCH);

Meta