forked from google/or-tools
-
Notifications
You must be signed in to change notification settings - Fork 2
/
generate_svg.sh
executable file
·66 lines (54 loc) · 2.23 KB
/
generate_svg.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/usr/bin/env bash
# Copyright 2010-2024 Google LLC
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set -e
./routing_svg.py -h
set -x
# TSP
./routing_svg.py --tsp > tsp.svg
./routing_svg.py --tsp --solution > tsp_solution.svg
# TSP Distance Matrix
./routing_svg.py --tsp > tsp_distance_matrix.svg
./routing_svg.py --tsp --solution > tsp_distance_matrix_solution.svg
# VRP
./routing_svg.py --vrp > vrp.svg
./routing_svg.py --vrp --solution > vrp_solution.svg
# VRP Global Span
./routing_svg.py --global-span > vrp_global_span.svg
./routing_svg.py --global-span --solution > vrp_global_span_solution.svg
# VRP Capacity
./routing_svg.py --capacity > vrp_capacity.svg
./routing_svg.py --capacity --solution > vrp_capacity_solution.svg
# VRP Drop Nodes
./routing_svg.py --drop-nodes > vrp_drop_nodes.svg
./routing_svg.py --drop-nodes --solution > vrp_drop_nodes_solution.svg
# VRP Time Windows
./routing_svg.py --time-windows > vrp_time_windows.svg
./routing_svg.py --time-windows --solution > vrp_time_windows_solution.svg
# Resource Problem
./routing_svg.py --resources > vrp_resources.svg
./routing_svg.py --resources --solution > vrp_resources_solution.svg
# VRP Starts Ends
./routing_svg.py --starts-ends > vrp_starts_ends.svg
./routing_svg.py --starts-ends --solution > vrp_starts_ends_solution.svg
# VRP Pickup Delivery
./routing_svg.py --pickup-delivery > vrp_pickup_delivery.svg
# ANY
./routing_svg.py --pickup-delivery --solution > vrp_pickup_delivery_solution.svg
# FIFO
./routing_svg.py --pickup-delivery --fifo --solution > vrp_pickup_delivery_fifo_solution.svg
# LIFO
./routing_svg.py --pickup-delivery --lifo --solution > vrp_pickup_delivery_lifo_solution.svg
## Fuel Problem
#./routing_svg.py --fuel > vrpf.svg
#./routing_svg.py --fuel --solution > vrpf_solution.svg