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

Update t_tutorial.cxx

上级 a3de4e45
......@@ -30,7 +30,7 @@ double myvconstraint(const std::vector<double> &x, std::vector<double> &grad, vo
int main() {
nlopt::opt opt("MMA", 2);
nlopt::opt opt("LD_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.
先完成此消息的编辑!
想要评论请 注册