1 #include <lemon/arg_parser.h>
4 int main(int argc, char **argv)
8 int parms[PROBLEM_PARMS];
10 lemon::ArgParser ap(argc,argv);
11 ap.refOption("seed","Random seed (default: 1)",seed)
12 .refOption("problem","Problem type (default: 0)",problem)
13 .refOption("nodes","Number of nodes (default: 10)",NODES)
14 .refOption("sources","Source nodes (default: 3)",SOURCES)
15 .refOption("sinks","Sink nodes (default: 3)",SINKS)
16 .refOption("density","Number of arcs (default: 30)",DENSITY)
17 .refOption("mincost","Minimum arc cost (default: 10)",MINCOST)
18 .refOption("maxcost","Maximum arc cost (default: 99)",MAXCOST)
19 .refOption("supply","Total supply (default: 1000)",SUPPLY)
20 .refOption("tsources","Transshipment sources (default: 0)",TSOURCES)
21 .refOption("tsinks","Transshipment sinks (default: 0)",TSINKS)
23 "Percent of skeleton arcs given maximum cost (default: 0)",
25 .refOption("capacitated","Percent of arcs to be capacitated (default: 100)",
27 .refOption("mincap","Minimum arc capacity (default: 100)",MINCAP)
28 .refOption("maxcap","Maximum arc capacity (default: 1000)",MAXCAP);
46 long lparms[PROBLEM_PARMS];
47 for(int i=0;i<PROBLEM_PARMS;i++) lparms[i]=parms[i];
49 return orig_main(seed,problem,lparms);