Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ERGO-Code/HiGHS
/ print_solution
Function
print_solution
examples/knapsack.py:8–9 ·
view source on GitHub ↗
(h, x)
Source
from the content-addressed store, hash-verified
6
import
highspy
7
8
def
print_solution(h, x):
9
print(f
"Solution: ({', '.join(map(str, abs(h.val(x))))})"
)
10
11
h = highspy.Highs()
12
h.silent()
Callers
1
knapsack.py
File · 0.85
Calls
3
map
Function · 0.85
join
Method · 0.80
val
Method · 0.45
Tested by
no test coverage detected