I ran into another issue with Pyomo 4.1. This bit of code is supposed to retain the lp file:
opt = SolverFactory( options.solver )
if opt:
if options.keepPyomoLP:
opt.keepfiles = True
opt.symbolic_solver_labels = True
But instead produces the following error:
Traceback (most recent call last):
File "/home/jdecarolis/anaconda/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/home/jdecarolis/anaconda/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/home/jdecarolis/temoa/temoa_model/__main__.py", line 26, in <module>
temoa_solve( model )
File "temoa_model/temoa_lib.py", line 2281, in temoa_solve
opt.keepfiles = True
AttributeError: can't set attribute
If I invoke pyomo solve with '--keepfiles' directly rather than invoking the Temoa python script, it produces the relevant solver files without a problem.
Any idea what's going on?
Thanks,
Joe