Opt.getLowerBounds

Get lower bounds

Equivalent in C API: nlopt_get_lower_bounds

Params:

lb = storage for output
  1. void getLowerBounds(T lb)
    struct Opt
    void
    getLowerBounds
    (
    T
    )
    (
    ref T lb
    )
    if (
    is(ForeachType!T == double)
    )
  2. void getLowerBounds(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