未验证 提交 a3de4e45 编写于 作者: S Steven G. Johnson 提交者: GitHub

test specifying algorithm by string

上级 1fcefeb1
......@@ -30,7 +30,7 @@ double myvconstraint(const std::vector<double> &x, std::vector<double> &grad, vo
int main() {
nlopt::opt opt(nlopt::LD_MMA, 2);
nlopt::opt opt("MMA", 2);
std::vector<double> lb(2);
lb[0] = -HUGE_VAL; lb[1] = 0;
opt.set_lower_bounds(lb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册