-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathStart.java
More file actions
31 lines (23 loc) · 699 Bytes
/
Start.java
File metadata and controls
31 lines (23 loc) · 699 Bytes
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
package vrp.program;
import java.io.IOException;
public class Start {
public static void main(String[] args) throws IOException{
if(args.length!=2){
System.out.println("Two parameters are obligatory. Filename and 'sweep' or 'clark' to choose the algorithm");
System.out.println("USAGE: Start [filename] [sweep|clark]");
}
String fileName = args[0];
VRPProgram.loadData(fileName);
Stopwatch s = new Stopwatch();
s.start();
if(args[1].equals("sweep")){
String output = VRPProgram.sweep();
System.err.println(output);
}else{
VRPProgram.clarkWright();
}
s.stop();
System.out.println(s.toString());
//MyUtils.generateRandomNodes(100,300,15);
}
}