import pyomo.environ as pmimport pyomo.opt as po
modelmodel = pm.ConcreteModel()...opt = po.SolverFactory("amplxpress")opt.options["LOGFILE"]="CON:" # The only way to see output from the optimizer. For *NIX, try "/dev/stdout"opt.options["GOMCUTS"]=0 # sample optionopt.options["TREECOVERCUTS"]=0 # sample optionopt.options["MAXTIME"]=600 # sample optionopt.options["MIPRELSTOP"]=0.01 # sample optionresults = opt.solve(model, tee=True)
results.solver.status == po.SolverStatus.warning
- The general way to call Xpress is through the 'nl' (aka AMPL) interface.
- The set of parameters available for amplxpress is slightly different than for the normal xpress. For example, OUTPUTLOG and HEURSEARCHROOTCUTFREQ, both available from the "normal" Xpress optimizer, are not available with amplxpress.
- So that means to check if the solver returned a solution, you will need to check to see if a solution exists
--
You received this message because you are subscribed to the Google Groups "Pyomo Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyomo-forum...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
For what it’s worth, AMPL documents the set of XPRESS options available through the command line here: https://ampl.com/products/solvers/solvers-we-sell/xpress/options/
They unfortunately do not indicate if a supplementary options file is also available.
john
--
For what it’s worth, AMPL documents the set of XPRESS options available through the command line here: https://ampl.com/products/solvers/solvers-we-sell/xpress/options/
--
You received this message because you are subscribed to a topic in the Google Groups "Pyomo Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pyomo-forum/VRO3dURqNC8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pyomo-forum...@googlegroups.com.