Checking that overconstrained equalities solve raise an exception
(self)
| 245 | ) |
| 246 | |
| 247 | def test_problem_overconstrained(self): |
| 248 | """ |
| 249 | Checking that overconstrained equalities solve raise an exception |
| 250 | """ |
| 251 | problem = placo.Problem() |
| 252 | |
| 253 | x = problem.add_variable(1) |
| 254 | y = problem.add_variable(1) |
| 255 | |
| 256 | problem.add_constraint(x.expr() + y.expr() == 1.0) |
| 257 | problem.add_constraint(x.expr() + y.expr() == 2.0) |
| 258 | |
| 259 | self.assertRaises(RuntimeError, problem.solve) |
| 260 | |
| 261 | def test_expr_t(self): |
| 262 | """ |
nothing calls this directly
no test coverage detected