更新progress回调函数

增加了lbfgs_parameter_t参数以监控反演进度
This commit is contained in:
2019-11-04 12:51:37 +08:00
parent 1f5145a580
commit d2904f3379
5 changed files with 11 additions and 6 deletions

View File

@@ -505,7 +505,7 @@ int lbfgs(
/* Report the progress. */
if (cd.proc_progress) {
// 如果监控函数返回值不为0 则退出迭过程
if ((ret = cd.proc_progress(cd.instance, x, g, fx, xnorm, gnorm, step, cd.n, k, ls))) {
if ((ret = cd.proc_progress(cd.instance, x, g, fx, xnorm, gnorm, step, param, cd.n, k, ls))) {
goto lbfgs_exit;
}
}