4.4.3. Vehicle Routing Problem¶
Vehicle Routing Problem を列生成法で解くサンプルです.
- class sample.vehicle_routing.VehicleRouting(capacity: int, volume: dict[str, int], dis: dict[tuple[str, str], float])[ソース]¶
ベースクラス:
sample.column_generator.ColumnGenerator
Vehicle Routing Problem
- create_new_pattern(lmbval: pysimple.table.Table, *, silent: bool = True) tuple[pysimple.table.Table, pysimple.table.Table] [ソース]¶
Sum(pattern[p,i]*lmb[i], i) < rd[p] となる p を見つける
- update_pattern(zval: pysimple.table.Table) None [ソース]¶
update self.pattern, self.c
- visualize(zval: pysimple.table.Table) None [ソース]¶
結果表示