@@ -94,31 +94,31 @@ static int parse_commandline(String args[]) {
9494 }
9595
9696 Options options = new Options ();
97- options .addOption ("r" , "tries" , true , " # number of independent trials" );
98- options .addOption ("s" , "tours" , true , " # number of steps in each trial" );
99- options .addOption ("t" , "time" , true , " # maximum time for each trial" );
100- options .addOption ("seed" , true , " # seed for the random number generator" );
101- options .addOption ("i" , "tsplibfile" , true , " f inputfile (TSPLIB format necessary)" );
102- options .addOption ("o" , "optimum" , true , " # stop if tour better or equal optimum is found" );
103- options .addOption ("m" , "ants" , true , " # number of ants" );
104- options .addOption ("g" , "nnants" , true , " # nearest neighbours in tour construction" );
105- options .addOption ("a" , "alpha" , true , " # alpha (influence of pheromone trails)" );
106- options .addOption ("b" , "beta" , true , " # beta (influence of heuristic information)" );
107- options .addOption ("e" , "rho" , true , " # rho: pheromone trail evaporation" );
108- options .addOption ("q" , "q0" , true , " # q_0: prob. of best choice in tour construction" );
109- options .addOption ("c" , "elitistants" , true , " # number of elitist ants" );
110- options .addOption ("f" , "rasranks" , true , " # number of ranks in rank-based Ant System" );
111- options .addOption ("k" , "nnls" , true , " # No. of nearest neighbors for local search" );
112- options .addOption ("l" , "localsearch" , true , " 0: no local search 1: 2-opt 2: 2.5-opt 3: 3-opt" );
113- options .addOption ("d" , "dlb" , false , " 1 use don't look bits in local search" );
114- options .addOption ("u" , "as" , false , " apply basic Ant System" );
115- options .addOption ("v" , "eas" , false , " apply elitist Ant System" );
116- options .addOption ("w" , "ras" , false , " apply rank-based version of Ant System" );
117- options .addOption ("x" , "mmas" , false , " apply MAX-MIN ant_colony system" );
118- options .addOption ("y" , "bwas" , false , " apply best-worst ant_colony system" );
119- options .addOption ("z" , "acs" , false , " apply ant_colony colony system" );
120- options .addOption ("quiet" , false , " reduce output to a minimum, no extra files" );
121- options .addOption ("h" , "help" , false , " display this help text and exit" );
97+ options .addOption ("r" , "tries" , true , "# number of independent trials" );
98+ options .addOption ("s" , "tours" , true , "# number of steps in each trial" );
99+ options .addOption ("t" , "time" , true , "# maximum time for each trial" );
100+ options .addOption ("seed" , true , "# seed for the random number generator" );
101+ options .addOption ("i" , "tsplibfile" , true , "f inputfile (TSPLIB format necessary)" );
102+ options .addOption ("o" , "optimum" , true , "# stop if tour better or equal optimum is found" );
103+ options .addOption ("m" , "ants" , true , "# number of ants" );
104+ options .addOption ("g" , "nnants" , true , "# nearest neighbours in tour construction" );
105+ options .addOption ("a" , "alpha" , true , "# alpha (influence of pheromone trails)" );
106+ options .addOption ("b" , "beta" , true , "# beta (influence of heuristic information)" );
107+ options .addOption ("e" , "rho" , true , "# rho: pheromone trail evaporation" );
108+ options .addOption ("q" , "q0" , true , "# q_0: prob. of best choice in tour construction" );
109+ options .addOption ("c" , "elitistants" , true , "# number of elitist ants" );
110+ options .addOption ("f" , "rasranks" , true , "# number of ranks in rank-based Ant System" );
111+ options .addOption ("k" , "nnls" , true , "# No. of nearest neighbors for local search" );
112+ options .addOption ("l" , "localsearch" , true , "0: no local search 1: 2-opt 2: 2.5-opt 3: 3-opt" );
113+ options .addOption ("d" , "dlb" , false , "1 use don't look bits in local search" );
114+ options .addOption ("u" , "as" , false , "apply basic Ant System" );
115+ options .addOption ("v" , "eas" , false , "apply elitist Ant System" );
116+ options .addOption ("w" , "ras" , false , "apply rank-based version of Ant System" );
117+ options .addOption ("x" , "mmas" , false , "apply MAX-MIN ant_colony system" );
118+ options .addOption ("y" , "bwas" , false , "apply best-worst ant_colony system" );
119+ options .addOption ("z" , "acs" , false , "apply ant_colony colony system" );
120+ options .addOption ("quiet" , false , "reduce output to a minimum, no extra files" );
121+ options .addOption ("h" , "help" , false , "display this help text and exit" );
122122
123123 CommandLine cmd = null ;
124124 CommandLineParser parser = new BasicParser ();
0 commit comments