Tests that solving an instance with an initial solution works as expected by checking that the best solution found is the same as the initial solution.
(rc208)
| 76 | |
| 77 | |
| 78 | def test_solve_initial_solution(rc208): |
| 79 | """ |
| 80 | Tests that solving an instance with an initial solution works as |
| 81 | expected by checking that the best solution found is the same as the |
| 82 | initial solution. |
| 83 | """ |
| 84 | bks = read_solution("data/RC208.sol", rc208) |
| 85 | res = solve(rc208, stop=MaxIterations(0), initial_solution=bks) |
| 86 | assert_equal(res.best, bks) |
| 87 | |
| 88 | |
| 89 | def test_solve_custom_params(rc208): |
nothing calls this directly
no test coverage detected