MCPcopy Index your code
hub / github.com/PyVRP/PyVRP / test_model_solve_initial_solution

Function test_model_solve_initial_solution

tests/test_Model.py:1124–1132  ·  view source on GitHub ↗

Tests that the Model correctly forwards an initial solution.

(rc208)

Source from the content-addressed store, hash-verified

1122
1123
1124def test_model_solve_initial_solution(rc208):
1125 """
1126 Tests that the Model correctly forwards an initial solution.
1127 """
1128 m = Model.from_data(rc208)
1129
1130 bks = read_solution("data/RC208.sol", rc208)
1131 res = m.solve(stop=MaxIterations(0), initial_solution=bks)
1132 assert_equal(res.best, bks)

Callers

nothing calls this directly

Calls 4

read_solutionFunction · 0.90
MaxIterationsClass · 0.90
from_dataMethod · 0.80
solveMethod · 0.80

Tested by

no test coverage detected