提交 79fa9f52 编写于 作者: S stevenj

cobyla should return ROUNDOFF_LIMITED if it "converges" to zero x tolerance,...

cobyla should return ROUNDOFF_LIMITED if it "converges" to zero x tolerance, rather than XTOL_REACHED; thanks to David Liu for the bug report

Ignore-this: c5ac800405beb77a0b18a7ba8f20a4a4

darcs-hash:20120827175359-c8de0-1ee07387d0560bde56d8de9315c20b03e4fea186.gz
上级 aeb1ae82
......@@ -1193,8 +1193,8 @@ L550:
}
goto L140;
}
else
rc = NLOPT_XTOL_REACHED;
else /* rho <= rhoend */
rc = rhoend > 0 ? NLOPT_XTOL_REACHED : NLOPT_ROUNDOFF_LIMITED;
/* Return the best calculated values of the variables. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册