@@ -139,8 +139,8 @@ for i in 0:10
139
139
sym = Symbol (" x" ,i)
140
140
var = getVariable (fg,sym)
141
141
@show val = var. solverDataDict[:parametric ]. val
142
- @test isapprox (val[1 ][1 ], i, atol= 1e-4 )
143
- @test isapprox (val[1 ][2 ], i, atol= 1e-4 )
142
+ @test isapprox (val[1 ][1 ], i, atol= 1e-3 )
143
+ @test isapprox (val[1 ][2 ], i, atol= 1e-3 )
144
144
end
145
145
146
146
# #
@@ -179,9 +179,9 @@ foreach(fct->println(fct.label, ": ", getFactorType(fct).Z), getFactors(fg))
179
179
d,st,vs,Σ = IIF. solveGraphParametric (fg)
180
180
181
181
foreach (println, d)
182
- @test isapprox (d[:x0 ]. val[1 ][1 ], - 0.01 , atol= 1e-4 )
183
- @test isapprox (d[:x1 ]. val[1 ][1 ], 0.0 , atol= 1e-4 )
184
- @test isapprox (d[:x2 ]. val[1 ][1 ], 0.01 , atol= 1e-4 )
182
+ @test isapprox (d[:x0 ]. val[1 ][1 ], - 0.01 , atol= 1e-3 )
183
+ @test isapprox (d[:x1 ]. val[1 ][1 ], 0.0 , atol= 1e-3 )
184
+ @test isapprox (d[:x2 ]. val[1 ][1 ], 0.01 , atol= 1e-3 )
185
185
186
186
187
187
# #
@@ -202,9 +202,9 @@ tree2 = solveTree!(fg; algorithm=:parametric, eliminationOrder=[:x0, :x2, :x1])
202
202
# end
203
203
foreach (v-> println (v. label, " : " , DFG. getSolverData (v, :parametric ). val), getVariables (fg))
204
204
205
- @test isapprox (getVariable (fg,:x0 ). solverDataDict[:parametric ]. val[1 ][1 ], - 0.01 , atol= 1e-4 )
206
- @test isapprox (getVariable (fg,:x1 ). solverDataDict[:parametric ]. val[1 ][1 ], 0.0 , atol= 1e-4 )
207
- @test isapprox (getVariable (fg,:x2 ). solverDataDict[:parametric ]. val[1 ][1 ], 0.01 , atol= 1e-4 )
205
+ @test isapprox (getVariable (fg,:x0 ). solverDataDict[:parametric ]. val[1 ][1 ], - 0.01 , atol= 1e-3 )
206
+ @test isapprox (getVariable (fg,:x1 ). solverDataDict[:parametric ]. val[1 ][1 ], 0.0 , atol= 1e-3 )
207
+ @test isapprox (getVariable (fg,:x2 ). solverDataDict[:parametric ]. val[1 ][1 ], 0.01 , atol= 1e-3 )
208
208
209
209
# # ##############################################################################
210
210
# # multiple sections
0 commit comments