When I use Neos server to solve my MILP problem with cplex, as it's explained in this thread, I get the following error:
results = solver_manager.solve(instance, opt=opt)
File "C:\Anaconda\envs\env_pyomo\lib\site-packages\pyomo\opt\parallel\async_solver.py", line 33, in solve
return self.execute(*args, **kwds)
File "C:\Anaconda\envs\env_pyomo\lib\site-packages\pyomo\opt\parallel\manager.py", line 91, in execute
results = self.wait_for(ah)
File "C:\Anaconda\envs\env_pyomo\lib\site-packages\pyomo\opt\parallel\manager.py", line 156, in wait_for
tmp = self.wait_any()
File "C:\Anaconda\envs\env_pyomo\lib\site-packages\pyomo\opt\parallel\manager.py", line 145, in wait_any
ah = self._perform_wait_any()
File "C:\Anaconda\envs\env_pyomo\lib\site-packages\pyomo\neos\plugins\kestrel_plugin.py", line 122, in _perform_wait_any
solver_results = self._opt.process_output(rc)
File "C:\Anaconda\envs\env_pyomo\lib\site-packages\pyomo\opt\solver\shellcmd.py", line 228, in process_output
results = self.results_reader(self.results_file, res=results, suffixes=self.suffixes)
File "C:\Anaconda\envs\env_pyomo\lib\site-packages\pyomo\opt\plugins\sol.py", line 78, in __call__
raise ValueError(msg)
ValueError: Error reading "c:\users\mc\appdata\local\temp\tmp2x9jbw.neos.sol": no Options line found.
SOL File Output:
ERROR: An error occured with your submission.
and when I check neos website with the given credentials to view job results, I get:
Job 3771867 has finished.
Job 3771867 dispatched
password: OvlqHczQ
---------- Begin Solver Output -----------
Job submitted to NEOS HTCondor pool.
=============
Neos takes more than 30sec to solve the problem when I upload the LP model directly via its web interface. Any idea how I can fix this to get the result using pyomo's SolverManagerFactory interface?
Thanks a lot.