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

Method add_client_group

pyvrp/Model.py:269–278  ·  view source on GitHub ↗

Adds a new, possibly optional, client group to the model. Returns the created group.

(
        self, required: bool = True, *, name: str = ""
    )

Source from the content-addressed store, hash-verified

267 return client
268
269 def add_client_group(
270 self, required: bool = True, *, name: str = ""
271 ) -> ClientGroup:
272 """
273 Adds a new, possibly optional, client group to the model. Returns the
274 created group.
275 """
276 group = ClientGroup(required=required, name=name)
277 self._groups.append(group)
278 return group
279
280 def add_depot(
281 self,

Calls 2

ClientGroupClass · 0.85
appendMethod · 0.80