We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0a5b2c commit d0efc65Copy full SHA for d0efc65
tests/test_nlp_expression.py
@@ -47,13 +47,13 @@ def test_nlp_expressiontree_obj(model_interface):
47
model.add_nl_constraint(z, (-1.0, 1.0))
48
49
with nl.graph():
50
- z = nl.exp(x**4) + nl.exp(y**4)
+ z = nl.exp(x**2) + nl.exp(y**2)
51
model.add_nl_objective(z)
52
53
model.optimize()
54
55
x_value = model.get_value(x)
56
y_value = model.get_value(y)
57
58
- assert x_value == approx(0.0, abs=1e-6)
59
- assert y_value == approx(0.0, abs=1e-6)
+ assert x_value == approx(0.0, abs=1e-4)
+ assert y_value == approx(0.0, abs=1e-4)
0 commit comments