You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-15Lines changed: 17 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,23 @@ Currently, Traveling Salesman Problems and Vehicle Routing Problems are supporte
10
10
* pytorch=0.4.1
11
11
* matplotlib
12
12
13
+
# To Run
14
+
15
+
Run by calling ```python trainer.py```
16
+
17
+
Tasks and complexity can be changed through the "task" and "nodes" flag:
18
+
19
+
```python trainer.py --task=vrp --nodes=10```
20
+
21
+
To restore a checkpoint, you must specify the path to a folder that has "actor.pt" and "critic.pt" checkpoints. Sample weights can be found [here](https://drive.google.com/open?id=1wxccGStVglspW-qIpUeMPXAGHh2HsFpF)
* Uses a GRU instead of LSTM for the decoder network
27
+
* Critic takes the raw static and dynamic input states and predicts a reward
28
+
* Here we use demand scaling (MAX_DEMAND / MAX_VEHICLE_CAPACITY), and give the depot for the VRP a negative value proportionaly to the missing capacity (Unsure if used or not)
Tasks and complexity can be changed through the "task" and "nodes" flag:
41
-
42
-
```python trainer.py --task=vrp --nodes=10```
43
53
44
-
To restore a checkpoint, you must specify the path to a folder that has "actor.pt" and "critic.pt" checkpoints. Sample weights can be found [here](https://drive.google.com/open?id=1wxccGStVglspW-qIpUeMPXAGHh2HsFpF)
* Uses a GRU instead of LSTM for the decoder network
50
-
* Critic takes the raw static and dynamic input states and predicts a reward
51
-
* (Unsure) Here we use demand scaling (MAX_DEMAND / MAX_VEHICLE_CAPACITY), and give the depot for the VRP a negative value proportionaly to the missing capacity
0 commit comments