test GNC along with other non-linear optimizers in python unit tests
parent
6364e34013
commit
c9bcb1430c
|
@ -78,6 +78,12 @@ class TestScenario(GtsamTestCase):
|
|||
dlParams.setOrdering(ordering)
|
||||
actual3 = DoglegOptimizer(fg, initial_values, dlParams).optimize()
|
||||
self.assertAlmostEqual(0, fg.error(actual3))
|
||||
|
||||
# Graduated Non-Convexity (GNC)
|
||||
gncParams = GncParams()
|
||||
actual4 = GncOptimizer(fg, initial_values, gncParams).optimize()
|
||||
self.assertAlmostEqual(0, fg.error(actual4))
|
||||
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Reference in New Issue