dot_sens
computations (for sensitivity)k_aug is compatible with Pyomo and AMPL via ASL. The main functionality can be used through suffixes.
sudo apt install zlib1g-dev
. On a mac brew install zlib
reportedly works.gcc
, g++
, gfortran
compilerscmake
It is now assumed that Ipopt from the coin-or project has been previously compiled with HSL.
This will enable MA57 as the default linear solver.
However, it is crucial to verify that the coinor libraries have been generated in standard locations.
Namely, /usr/local/lib
, and the libraries include:
coinasl
coinmetis
coinhsl
Depending on your platform, these are typically named libcoinX.so or libcoinX.dll.a, where X is equal to asl, metis or hsl.
cmake CMakeLists.txt
make
k_aug
executable/usr/lib/lapack
, as well the libcoinX.dll.a
files (typically located at /usr/local/lib/
)Normally this will generate libraries in the /usr/local/lib
, these are named libcoinX.dylib
where X=asl,hsl, etc.
Find out where libgfortran.dylib is located, tipically /usr/local/Cellar/gcc/
... or /usr/local/opt/gcc/lib/gcc/X/lib
.
Note that this will depend on the version of Mac OS X, gcc, etc.
Put the location of gfortran in the line 80
of the CMakeLists.txt
after HINTS
.
If you have libraries with different names other than libcoinX.dylib
or different locations, make sure these are reflected in the lines 73-80
of the CMakeLists.txt
file.
Run cmake .
, then make
if successful, find your executables in the bin
directory.
Enjoy.
So far, dozens of times tested .
k_aug
is an essential part of the NMPC-MHE framework(caprese). Written by David Thierry 2020, under BSD 3-Clause license.