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

Function test_default_values

tests/test_solve.py:20–32  ·  view source on GitHub ↗

Tests that the default values are set correctly.

()

Source from the content-addressed store, hash-verified

18
19
20def test_default_values():
21 """
22 Tests that the default values are set correctly.
23 """
24 params = SolveParams()
25
26 assert_equal(params.ils, IteratedLocalSearchParams())
27 assert_equal(params.penalty, PenaltyParams())
28 assert_equal(params.neighbourhood, NeighbourhoodParams())
29 assert_equal(params.node_ops, NODE_OPERATORS)
30 assert_equal(params.route_ops, ROUTE_OPERATORS)
31 assert_allclose(params.display_interval, 5.0)
32 assert_equal(params.perturbation, PerturbationParams())
33
34
35def test_solve_params_from_file():

Callers

nothing calls this directly

Calls 5

SolveParamsClass · 0.90
PenaltyParamsClass · 0.90
NeighbourhoodParamsClass · 0.90
PerturbationParamsClass · 0.90

Tested by

no test coverage detected