-->

installing Ipopt for anaconda python

2019-05-22 21:12发布

问题:

Has anyone installed Ipopt on Anaconda python? I downloaded the version 3.6.1. Addditionally, I downloaded the requested intel Fortran libraries as described in the readme file.

The install should be straight forward by using configure make and make install with all dependencies linked to it. I hope I will figure that out by myself.

What else do I have to consider if I would like to use Ipopt within anaconda ? In particular I would like to build Pygmo with the Ipopt included.

Or is it sufficient to install pyopt or Casadi ?

回答1:

I have installed ipopt on an anaconda environment via the anaconda cloud; ipopt on the anaconda cloud is available on https://anaconda.org/conda-forge/ipopt.

To install ipopt on an anaconda environment, you just need to open an anaconda terminal, activate the environment you wish to install ipopt on, then type: "conda install -c conda-forge ipopt", then proceed normally as you would in installing other packages.



回答2:

I am not particularly familiar with Casadi, but the selection of your optimisation interface will depend pretty much in what are you expecting to do with your problem. For a simple optimisation problem you may use scipy.minimize, for example.

In principle, both (refeering to pyOpt and PyGMO) give you different set of functionalities. For example, PyGMO has other functionalities such as Dr. PyGMO and the possibility of use the Generalised Island Model. In your particular case, you will have to decide on your own what suits you best.

If the task you are doing explicitly requires the use of Ipopt, then the configuration of either PyGMO, pyOpt, or other interface should be a secondary item to whatever you preffer.



标签: python ipopt