提交 7d6fcd69 编写于 作者: S stevenj

first stab at minf_max support in StoGO (clearly too conservative still)

darcs-hash:20070911224219-c8de0-7eb662a7671d5ae99616bb64dc3cf754c1d7376f.gz
上级 836ac7b9
......@@ -140,6 +140,10 @@ double Global::NewtonTest(RTBox box, int axis, RCRVector x_av, int *noutside) {
cout << " F=" <<tmpTrial.objval << " FC=" << FC << endl;
}
SolSet.push_back(tmpTrial);
#ifdef NLOPT_UTIL_H
if (tmpTrial.objval < stop->minf_max)
break;
#endif
}
#ifdef GS_DEBUG
cout << "Found a stationary point, X= " << tmpTrial.xvals;
......@@ -236,6 +240,12 @@ void Global::Search(int axis, RCRVector x_av){
#endif
ReduceOrSubdivide(box, axis, x_av);
#ifdef NLOPT_UTIL_H
if (!NoMinimizers() && OneMinimizer(x) < stop->minf_max) {
done = TRUE;
break;
}
#endif
if (!InTime()) {
done=TRUE;
if (stogo_verbose)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册