mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-22 00:14:31 +01:00
increase precision for dog leg algo. Now we can!
This commit is contained in:
parent
d7c7c29730
commit
0bf305ba80
1 changed files with 8 additions and 2 deletions
|
|
@ -260,8 +260,14 @@ optim.inv = function inv(x) {
|
|||
optim.dog_leg = function (subsys, rough) {
|
||||
//rough = true
|
||||
//var tolg = rough ? 1e-3 : 1e-4;
|
||||
var tolg = 1e-1;
|
||||
var tolf = 1e-2;
|
||||
var tolg, tolf;
|
||||
if (rough) {
|
||||
tolg = 1e-2;
|
||||
tolf = 1e-2;
|
||||
} else {
|
||||
tolg = 1e-6;
|
||||
tolf = 1e-6;
|
||||
}
|
||||
|
||||
var tolx = 1e-80;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue