Hi everyone. Again
I have been trying to install ipopt in Ubuntu 14.04.5 (GNU/Linux 3.13.0-65-generic x86_64).
After had followed the instruction of the Coin project, I am getting the next error message
WARNING: "[base]/dist-packages/pyomo/opt/base/solvers.py", 201, __solver_call__
Failed to create solver with name 'ipopt':
Failed to set executable for solver asl. File with name=/opt/CoinIpopt/build/lib/pkgconfig either does not exist or it is not executable. To skip this validation, call set_executable with validate=False.
Traceback (most recent call last):
results = solver.solve(instance,tee=True,file_determinism=1)
File "/usr/local/lib/python2.7/dist-packages/pyomo/opt/base/solvers.py", line 126, in solve
self._solver_error('solve')
File "/usr/local/lib/python2.7/dist-packages/pyomo/opt/base/solvers.py", line 154, in _solver_error
+ "\n\toptions: %s" % ( self.options, ) )
RuntimeError: Attempting to use an unavailable solver.
The SolverFactory was unable to create the solver "ipopt"
and returned an UnknownSolver object. This error is raised at the point
where the UnknownSolver object was used as if it were valid (by calling
method "solve").
The original solver was created with the following parameters:
executable: /opt/CoinIpopt/build/lib/pkgconfig
type: ipopt
_args: ()
options: {}
I have tried by specifying directly the path where my 'ipopt.pc' executable is located, as Gabe suggested in an older post and I had also added this location into my path in the .bashrc file. Both options hadn't worked.