This commit is contained in:
Val Erastov 2016-07-18 18:24:12 -07:00
parent c66ada2271
commit e773a81bcb

View file

@ -411,15 +411,13 @@ optim.dog_leg = function (subsys, rough) {
// break;
// }
// see if we are already finished
if (stop)
if (stop) {
break;
// get the new values
var err_new;
}
x_new = n.add(x, h_dl);
subsys.setParams(x_new);
err_new = subsys.calcResidual(fx_new);
var err_new = subsys.calcResidual(fx_new);
subsys.fillJacobian(Jx_new);
// calculate the linear model and the update ratio