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)
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)