Skip to content

Commit

Permalink
Same for inputfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mrprajesh committed Feb 5, 2022
1 parent f760967 commit 5866ae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cvrp2.html
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@
var lines = text.split("\n");

for (var i = 0; i < lines.length; ++i) {
lines[i]=lines[i].trim(); //MUST for cleaning!
var words = lines[i].split(/\s+|\t/); //spaces and tabs
if(words[0] == "NAME") {
instName = words[2];
Expand Down Expand Up @@ -360,7 +361,7 @@
var solVal = 0.0;
var outVal = 0.0;
for (var i = 0; i < lines.length; ++i) {
lines[i]=lines[i].trim(); //MUST
lines[i]=lines[i].trim(); //MUST for cleaning!
var words = lines[i].split(/\s+|\t/); //spaces and tabs
var routeVal = 0.0;
var prevPoint = 0;
Expand Down

0 comments on commit 5866ae7

Please sign in to comment.