alpar@7: #include alpar@7: #include "main.h" alpar@7: alpar@7: int main(int argc, char **argv) alpar@7: { alpar@7: int seed=1; alpar@7: int problem=0; alpar@7: int parms[PROBLEM_PARMS]; alpar@7: alpar@7: lemon::ArgParser ap(argc,argv); alpar@7: ap.refOption("seed","Random seed (default: 1)",seed) alpar@7: .refOption("problem","Problem type (default: 0)",problem) alpar@7: .refOption("nodes","Number of nodes (default: 10)",NODES) alpar@7: .refOption("sources","Source nodes (default: 3)",SOURCES) alpar@7: .refOption("sinks","Sink nodes (default: 3)",SINKS) alpar@7: .refOption("density","Number of arcs (default: 30)",DENSITY) alpar@7: .refOption("mincost","Minimum arc cost (default: 10)",MINCOST) alpar@7: .refOption("maxcost","Maximum arc cost (default: 99)",MAXCOST) alpar@7: .refOption("supply","Total supply (default: 1000)",SUPPLY) alpar@7: .refOption("tsources","Transshipment sources (default: 0)",TSOURCES) alpar@7: .refOption("tsinks","Transshipment sinks (default: 0)",TSINKS) alpar@7: .refOption("hicost", alpar@7: "Percent of skeleton arcs given maximum cost (default: 0)", alpar@7: HICOST) alpar@7: .refOption("capacitated","Percent of arcs to be capacitated (default: 100)", alpar@7: CAPACITATED) alpar@7: .refOption("mincap","Minimum arc capacity (default: 100)",MINCAP) alpar@7: .refOption("maxcap","Maximum arc capacity (default: 1000)",MAXCAP); alpar@7: alpar@7: NODES=10; alpar@7: SOURCES=3; alpar@7: SINKS=3; alpar@7: DENSITY=30; alpar@7: MINCOST=10; alpar@7: MAXCOST=99; alpar@7: SUPPLY=1000; alpar@7: TSOURCES=0; alpar@7: TSINKS=0; alpar@7: HICOST=0; alpar@7: CAPACITATED=100; alpar@7: MINCAP=100; alpar@7: MAXCAP=1000; alpar@7: alpar@7: ap.run(); alpar@7: alpar@7: long lparms[PROBLEM_PARMS]; alpar@7: for(int i=0;i