Hi all
My attempts to install casadi with NLP solver KNITRO on a windows machine to which I do not have administrator privileges are progressing... I could get my hands on the DLL files for KNITRO and copy them into the same directory where libcasadi_npsol_knitro.dll resides. However, I still get the same error that the KNITRO DLL cannot be found:
CasADi - MESSAGE("nlp::init") [.../casadi/core/function_internal.cpp:302]
CasADi - MESSAGE("nlp::init") [.../casadi/core/x_function.hpp:232]
CasADi - MESSAGE("nlp::init") [.../casadi/core/sx_function.cpp:200]
CasADi - MESSAGE("Using live variables: work array is 230 instead of 27503") [.../casadi/core/sx_function.cpp:397]
CasADi - MESSAGE("27503 elementary operations") [.../casadi/core/sx_function.cpp:462]
CasADi - WARNING(".../casadi/core/plugin_interface.hpp:292: Assertion "handle!=nullptr" failed:
PluginInterface::load_plugin: Cannot load shared library 'libcasadi_nlpsol_knitro.dll':
(
Searched directories: 1. casadipath from GlobalOptions
2. CASADIPATH env var
3. PATH env var (Windows)
4. LD_LIBRARY_PATH env var (Linux)
5. DYLD_LIBRARY_PATH env var (osx)
A library may be 'not found' even if the file exists:
* library is not compatible (different compiler/bitness)
* the dependencies are not found
)
Tried 'M:\Matlab\casadi-windows-matlabR2014b-v3.4.4' :
Error code (WIN32): 126
Tried '' :
Error code (WIN32): 126
Tried '.' :
Error code (WIN32): 126") [.../casadi/core/plugin_interface.hpp:148]
Error using casadi.nlpsol (line 863)
.../casadi/core/plugin_interface.hpp:387: Plugin 'knitro' is not found.
Error in solve_by_poly_matrices (line 132)
S = nlpsol('S', 'knitro', nlp, opts_cas);
As you can see, casadi and in particular libcasadi_nlpsol_knitro.dll is found. However, KNITRO is not loaded because something is wrong (although the DLL are in the same directory, namely M:\Matlab\casadi-windows-matlabR2014b-v3.4.4). Maybe there is a particular version requested, or some other dependency that is not explicit in the error message? (Unfortunately, I cannot run Microsofts Process Monitor to check for any other file access attempt, because I have no Admin privileges...).
Thank you very much and best, Gregor.