Esempio n. 1
0
 def test_socp_3(self):
     for axis in [0, 1]:
         sth = STH.socp_3(axis)
         TestSlacks.simulate_chain(sth.prob, [], solver='ECOS')
         sth.verify_objective(places=4)
         sth.verify_primal_values(places=4)
Esempio n. 2
0
 def _socp_3(self, axis):
     sth = STH.socp_3(axis)
     TestDualize.simulate_chain(sth.prob)
     sth.verify_objective(places=4)
     sth.verify_primal_values(places=4)
     sth.verify_dual_values(places=4)