MCPcopy 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

6import highspy
7
8def print_solution(h, x):
9 print(f"Solution: ({', '.join(map(str, abs(h.val(x))))})")
10
11h = highspy.Highs()
12h.silent()

Callers 1

knapsack.pyFile · 0.85

Calls 3

mapFunction · 0.85
joinMethod · 0.80
valMethod · 0.45

Tested by

no test coverage detected