rollback LM as a precise solver as dog leg doing great now

This commit is contained in:
Val Erastov 2015-08-13 00:43:54 -07:00
parent 0bf305ba80
commit 0a41cc23c1

View file

@ -258,11 +258,13 @@ TCAD.parametric.prepare = function(constrs, locked, aux, alg) {
if (conflict) return nullResult;
if (constrs.length == 0) return nullResult;
if (sys.params.length == 0) return nullResult;
var res = optim.dog_leg(sys, true);
if (!rough) {
res = TCAD.parametric.solve_lm(sys, model, jacobian, false)
switch (alg) {
case 2:
return TCAD.parametric.solve_lm(sys, model, jacobian, rough);
case 1:
default:
return optim.dog_leg(sys, rough);
}
return res;
}
var systemSolver = {
diagnose : function() {return TCAD.parametric.diagnose(sys)},