MCPcopy Create free account
hub / github.com/PyVRP/PyVRP / monotonically_decreasing

Function monotonically_decreasing

tests/test_solve.py:95–96  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

93 """
94
95 def monotonically_decreasing(arr) -> np.bool_:
96 return np.all(np.diff(arr) <= 0)
97
98 # Configure ILS to only accept improving solutions by setting
99 # ``history_length=1``.

Callers 1

test_solve_custom_paramsFunction · 0.85

Calls 1

allMethod · 0.80

Tested by

no test coverage detected