def main(): args = parse_arguments() if args.output is not None: sys.stdout = open(args.output, "w") u, b = extract_lsq_problems() if not args.u and not args.b: args.u = True args.b = True if args.u: methods = None run_benchmark(u, args.ftol, args.xtol, args.gtol, args.jac, methods=methods, benchmark_name="Unbounded problems") if args.b: methods = ['dogbox', 'trf', 'leastsqbound', 'l-bfgs-b'] run_benchmark(b, args.ftol, args.xtol, args.gtol, args.jac, methods=methods, benchmark_name="Bounded problems")
def main(): args = parse_arguments() if args.output is not None: sys.stdout = open(args.output, "w") u, b, s = extract_lsq_problems() if not args.u and not args.b and not args.s: args.u = True args.b = True args.s = True if args.u: methods = ['trf', 'dogbox'] run_benchmark(u, args.ftol, args.xtol, args.gtol, args.jac, methods=methods, benchmark_name="Unbounded problems") if args.b: methods = ['trf', 'dogbox'] # methods = ['dogbox', 'trf', 'trf-s', 'leastsqbound', 'l-bfgs-b'] # methods = ['leastsqbound', 'trf', 'dogbox', 'l-bfgs-b'] run_benchmark(b, args.ftol, args.xtol, args.gtol, args.jac, methods=methods, benchmark_name="Bounded problems") if args.s: # methods = ['trf-lsmr-reg', 'dogbox-lsmr'] methods = ['dogbox-lsmr', 'trf-lsmr'] run_benchmark(s, args.ftol, args.xtol, args.gtol, args.jac, methods=methods, benchmark_name="Sparse problems")