提交 5131a480 编写于 作者: S stevenj

detect null preconditioner when maximizing

Ignore-this: 8e1efab266f1b1e84454498b3ba2e17c

darcs-hash:20111123193310-c8de0-64d7f604fb95fca7a8f7ae15d6d5805c57e5fe04.gz
上级 b24bf83a
......@@ -837,7 +837,8 @@ NLOPT_STDCALL nlopt_optimize(nlopt_opt opt, double *x, double *opt_f)
flips the sign of everything */
if ((maximize = opt->maximize)) {
fmd.f = f; fmd.f_data = f_data; fmd.pre = pre;
opt->f = f_max; opt->f_data = &fmd; opt->pre = pre_max;
opt->f = f_max; opt->f_data = &fmd;
if (opt->pre) opt->pre = pre_max;
opt->stopval = -opt->stopval;
opt->maximize = 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册