Opt.getMaxeval

Gets the maximum number of evaluations.

Equivalent in C API: nlopt_get_maxeval

struct Opt
getMaxeval
()

Return Value

Type: auto

Maxeval

Examples

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

opt.setMaxeval(20);
assert(opt.getMaxeval() == 20);

Meta