1 Star 1 Fork 0

PengLu / mexIPOPT

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

mexIPOPT

by Enrico Bertolazzi

This is my rewrite of Peter Carbonetto MATLAB interface for IPOPT a software package for large-scale ​nonlinear optimization.

Source code and documentation for IPOPT can be downloaded from:

https://projects.coin-or.org/Ipopt

On OSX IPOPT can be installed using Homebrew (http://brew.sh).

Why do a job already done?

The original MATLAB interface (https://projects.coin-or.org/Ipopt/wiki/MatlabInterface) seems not maintained for OSX and do not work with recent MATLAB distributions. I have reorganized and simplified the original interface (only internally) and eliminated the bug (due to MATLAB change in the managing of sparse pattern) in the interfacing of sparse pattern between MATLAB and IPOPT. Moreover I tried to improve error catching.

How to compile

If you have an OSX or a LINUX 64 bit OS try to use the corresponding precompiled mex file, otherwise try to compile the mex interface following the instructions. Compilation is not an easy task, I try to be as clear as possibile, in any case things may change from different version of OS.

The interface is written in C++. To compile the mex file

  • change the working directory to the lib directory.
  • run the script compile_osx or compile_linux or compile_win.

To compile the mex interface you need a static IPOPT library installed in your system. To install the library read README_osx_how_to_compile_ipopt.md or README_linux_how_to_compile_ipopt.md. For windows system in the binary directory I copied precompiled dll of ipopt + dependecties taken from https://github.com/JuliaOpt.

For the usage of the mex file use addpath to add lib directory in the search path or move the contents of lib to a directory in the search path.

Examples

In the directory example you find the original examples of Peter Carbonetto which shows the usage of the interface.

Author:

Enrico Bertolazzi
Department of Industrial Engineering
University of Trento
enrico.bertolazzi@unitn.it
MIT License Copyright (c) 2018 Enrico Bertolazzi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

MATLAB interface for IPOPT 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/olupengo/mexIPOPT.git
git@gitee.com:olupengo/mexIPOPT.git
olupengo
mexIPOPT
mexIPOPT
master

搜索帮助