Install Ipopt solver to use with Pyomo in ubuntu

天涯浪子 提交于 2019-12-24 11:04:13

问题


How can I install ipopt solver to use it with pyomo in ubuntu??? I have already download the zip file of ipopt

but I don'n find any specific instructions how to install it and use it with pyomo.


回答1:


If you downloaded a binary then you just have to make sure that the ipopt executable is in your PATH environment variable. If you are trying to install from source code you should follow the instructions here. Your last option is to use anaconda to install an ipopt binary using the command:

conda install -q -y --channel cachemeorg ipopt_bin

I think conda installs an old version of ipopt so be aware.

With any of these installations you will know it is installed correctly when you type ipopt in a terminal window and get the following output:

No stub!
usage: ipopt [options] stub [-AMPL] [<assignment> ...]

Options:
    --  {end of options}
    -=  {show name= possibilities}
    -?  {show usage}
    -e  {suppress echoing of assignments}
    -s  {write .sol file (without -AMPL)}
    -v  {just show version}


来源:https://stackoverflow.com/questions/46237394/install-ipopt-solver-to-use-with-pyomo-in-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!