Skip to content

Commit 092fea1

Browse files
author
Romain MONTAGNÉ
committed
added use_all_vehicles option
1 parent 16935e5 commit 092fea1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/vrp_variants.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,12 @@ It is possible to limit the size of the fleet. For example, if at most :math:`10
235235
the number of available vehicles, per vehicle type. The order of the items of the list has to be consistent with the other
236236
lists (``cost``, ``load_capacity``, ``fixed_cost``).
237237

238+
And to enforce exactly ``num_vehicles`` vehicles, one can use the ``use_all_vehicles``:
239+
240+
.. code-block:: python
241+
242+
>>> prob.use_all_vehicles = True
243+
238244
Dropping visits
239245
^^^^^^^^^^^^^^^
240246

0 commit comments

Comments
 (0)