I know that there are some questions concerning this type of error, for example, this link.
I first installed the latest version of ipopt through command line into my Pyomo environment and got the "No executable found for solver 'ipopt' " error. But after studying the stackoverflow answers, I realized that I should downgrade the version of ipopt afterwards I got the same error, again when implementing a model in Pyomo.
Here is the information:
And this is the error:
WARNING: Could not locate the 'ipopt' executable, which is required for solver
ipopt
---------------------------------------------------------------------------
ApplicationError Traceback (most recent call last)
<ipython-input-14-44d48836faac> in <module>
----> 1 results = opt.solve(model)
~\anaconda3\lib\site-packages\pyomo\opt\base\solvers.py in solve(self, *args, **kwds)
514 """ Solve the problem """
515
--> 516 self.available(exception_flag=True)
517 #
518 # If the inputs are models, then validate that they have been
~\anaconda3\lib\site-packages\pyomo\opt\solver\shellcmd.py in available(self, exception_flag)
116 if exception_flag:
117 msg = "No executable found for solver '%s'"
--> 118 raise ApplicationError(msg % self.name)
119 return False
120 return True
ApplicationError: No executable found for solver 'ipopt'
Now, I don't know what to do.