Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BasisResearch/lean.py
/ test_maximize
Method
test_maximize
tests/test_z3_ported.py:3410–3414 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
3408
assert len(o.assertions()) == 1
3409
3410
def
test_maximize(self):
3411
o = Optimize()
3412
x = Int(
"x"
)
3413
h = o.maximize(x)
3414
assert h == 0
3415
3416
def
test_minimize(self):
3417
o = Optimize()
Callers
nothing calls this directly
Calls
3
maximize
Method · 0.95
Optimize
Class · 0.90
Int
Function · 0.90
Tested by
no test coverage detected