File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/main/java/vrp/example/java Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ This example shows how to use `pragmatic` library from java or kotlin.
44
55# Usage
66
7- - Build ` vrp-pragmatic ` crate
7+ - Build ` vrp-cli ` crate
88- Copy build artifact to resources
99- Prepare problem and routing matrix files in ` pragmatic ` format
1010- Run one of examples specifying paths to problem and matrix(-ces) files
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public static void main(String[] args) throws IOException {
3838 String problem = new String (Files .readAllBytes (Paths .get (args [0 ])));
3939 String [] matrices = new String [args .length - 1 ];
4040 for (int i = 1 ; i < args .length ; i ++) {
41- matrices [i ] = new String (Files .readAllBytes (Paths .get (args [i ])));
41+ matrices [i - 1 ] = new String (Files .readAllBytes (Paths .get (args [i ])));
4242 }
4343
4444 Solver solver = Native .load ("vrp_cli" , Solver .class );
You can’t perform that action at this time.
0 commit comments