Skip to content

Commit

Permalink
added use_all_vehicles option
Browse files Browse the repository at this point in the history
  • Loading branch information
Romain MONTAGNÉ committed Jun 5, 2021
1 parent 16935e5 commit 092fea1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/vrp_variants.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@ It is possible to limit the size of the fleet. For example, if at most :math:`10
the number of available vehicles, per vehicle type. The order of the items of the list has to be consistent with the other
lists (``cost``, ``load_capacity``, ``fixed_cost``).

And to enforce exactly ``num_vehicles`` vehicles, one can use the ``use_all_vehicles``:

.. code-block:: python
>>> prob.use_all_vehicles = True
Dropping visits
^^^^^^^^^^^^^^^

Expand Down

0 comments on commit 092fea1

Please sign in to comment.