Coverage for docs/source/examples/sin_approx_example.py: 100%
8 statements
« prev ^ index » next coverage.py v7.4.0, created at 2024-01-05 22:33 -0500
« prev ^ index » next coverage.py v7.4.0, created at 2024-01-05 22:33 -0500
1"Can be found in gpkit/docs/source/examples/sin_approx_example.py"
2import numpy as np
3from gpkit import Variable, Model
6x = Variable("x")
7y = Variable("y")
9objective = y
11constraints = [y >= x,
12 x <= np.pi/2,
13 x >= np.pi/4,
14 ]
16m = Model(objective, constraints)
17print(m.solve(verbosity=0).summary())