public static void Main(String[] args) { String inputFile = "../../../../examples/data/rehearsal.data"; if (args.Length > 1) { inputFile = args[1]; } Talent talent = new Talent(inputFile); cp.Solve(); talent.Display(); }
public static void Main(String[] args) { String inputFile = "../../../../examples/data/rehearsal.data"; double tlim = 10.0; if (args.Length > 1) { inputFile = args[1]; } if (args.Length > 2) { tlim = Double.Parse(args[2]); } Talent talent = new Talent(inputFile); cp.SetParameter(CP.DoubleParam.TimeLimit, tlim); cp.Solve(); talent.Display(); }
public static void Main(String[] args) { String inputFile = "../../../../examples/data/rehearsal.data"; double tlim = 10.0; if (args.Length > 1) inputFile = args[1]; if (args.Length > 2) tlim = Double.Parse(args[2]); Talent talent = new Talent(inputFile); cp.SetParameter(CP.DoubleParam.TimeLimit, tlim); cp.Solve(); talent.Display(); }