Opt.getLowerBounds

Get lower bounds

Equivalent in C API: nlopt_get_lower_bounds

Params:

lb = storage for output
  1. void getLowerBounds(T lb)
  2. void getLowerBounds(double lb)
    struct Opt
    void
    getLowerBounds
    ()
    (
    ref double lb
    )

Examples

import std.algorithm : cmp;

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

double[] lb = [1, 0];
opt.setLowerBounds(lb);

double[] lbNew;
lbNew.length = 2;
opt.getLowerBounds(lbNew);
auto result = cmp(lb[], lbNew[]);

assert(result == 0);

Meta