casadi installation and matlab issues

1,500 views
Skip to first unread message

Slava Kungurtsev

unread,
Mar 7, 2018, 11:10:42 AM3/7/18
to CasADi
Hope you are all doing well. I am looking at casadi to work on an algorithm for NMHE.

I'm attempting to use casadi in matlab, which I have never tried before, and am encountering problems. The installation went with no errors, but when I do the python tests, a lot of errors show up (for instance "test_1d_bspline (function.Functiontests) ... ERROR") then it ends with a segfault.
Then in MATLAB when I add the path of my casadi installation and try
import casadi.*
x = MX.sym('x')
it says MX is undefined.

Let me know how I should proceed. Thanks

Best regards,
~Slava

Joris Gillis

unread,
Mar 7, 2018, 11:17:20 AM3/7/18
to CasADi
Hey Slava!

How are you doing?

How are you using CasADi, from binaries or source build?
If you aren't already, you should use the latest release and its instructions( install.casadi.org ).
Which operating system (and version)?
Can you provide the full error messages for the Python unittests?

Best regards,
  Joris

Slava Kungurtsev

unread,
Mar 8, 2018, 3:58:33 AM3/8/18
to CasADi
Hello Joris,

I am doing well, I hope you are too

I tried both

Ubuntu 14.04

The tail of the output from the python tests:

n use. Ignored.") [.../casadi/core/plugin_interface.hpp:304]
<function test_jacobians at 0x7fe3c548db90>
<function test_hessians at 0x7fe3c548dc08>
<function test_map_node at 0x7fe3c548df50>
<function test_mapsum at 0x7fe3c5491140>
<function test_mapsum2 at 0x7fe3c54911b8>
<function test_mapaccum at 0x7fe3c5491398>
CasADi - 2018-03-07 10:43:51 WARNING("PluginInterface: Solver ipopt is already in use. Ignored.") [.../casadi/core/plugin_interface.hpp:304]
<function test_expm at 0x7fe3c5491b18>
Not available Expm plugin slicot, skipping unittests
test_Jacobian (ad.ADtests) ...  forward Jacobian on SX. Input dense column, Output dense column
 reverse Jacobian on SX. Input dense column, Output dense column
 forward Jacobian on SX. Input dense column, Output sparse column
 reverse Jacobian on SX. Input dense column, Output sparse column
 forward Jacobian on SX. Input sparse column, Output dense column
 reverse Jacobian on SX. Input sparse column, Output dense column
 forward Jacobian on SX. Input sparse column, Output sparse column
 reverse Jacobian on SX. Input sparse column, Output sparse column
 forward Jacobian on SX. Input dense column, Output dense row
 reverse Jacobian on SX. Input dense column, Output dense row
 forward Jacobian on SX. Input dense column, Output sparse row
 reverse Jacobian on SX. Input dense column, Output sparse row
 forward Jacobian on SX. Input sparse column, Output dense row
 reverse Jacobian on SX. Input sparse column, Output dense row
 forward Jacobian on SX. Input sparse column, Output sparse row
 reverse Jacobian on SX. Input sparse column, Output sparse row
 forward Jacobian on SX. Input dense column, Output dense matrix
 reverse Jacobian on SX. Input dense column, Output dense matrix
 forward Jacobian on SX. Input dense column, Output sparse matrix
 reverse Jacobian on SX. Input dense column, Output sparse matrix
 forward Jacobian on SX. Input sparse column, Output dense matrix
 reverse Jacobian on SX. Input sparse column, Output dense matrix
 forward Jacobian on SX. Input sparse column, Output sparse matrix
 reverse Jacobian on SX. Input sparse column, Output sparse matrix
 forward Jacobian on SX. Input dense row, Output dense column
 reverse Jacobian on SX. Input dense row, Output dense column
 forward Jacobian on SX. Input dense row, Output sparse column
 reverse Jacobian on SX. Input dense row, Output sparse column
 forward Jacobian on SX. Input sparse row, Output dense column
 reverse Jacobian on SX. Input sparse row, Output dense column
 forward Jacobian on SX. Input sparse row, Output sparse column
 reverse Jacobian on SX. Input sparse row, Output sparse column
 forward Jacobian on SX. Input dense row, Output dense row
 reverse Jacobian on SX. Input dense row, Output dense row
 forward Jacobian on SX. Input dense row, Output sparse row
 reverse Jacobian on SX. Input dense row, Output sparse row
 forward Jacobian on SX. Input sparse row, Output dense row
 reverse Jacobian on SX. Input sparse row, Output dense row
 forward Jacobian on SX. Input sparse row, Output sparse row
 reverse Jacobian on SX. Input sparse row, Output sparse row
 forward Jacobian on SX. Input dense row, Output dense matrix
 reverse Jacobian on SX. Input dense row, Output dense matrix
 forward Jacobian on SX. Input dense row, Output sparse matrix
 reverse Jacobian on SX. Input dense row, Output sparse matrix
 forward Jacobian on SX. Input sparse row, Output dense matrix
 reverse Jacobian on SX. Input sparse row, Output dense matrix
 forward Jacobian on SX. Input sparse row, Output sparse matrix
 reverse Jacobian on SX. Input sparse row, Output sparse matrix
 forward Jacobian on SX. Input dense matrix, Output dense column
 reverse Jacobian on SX. Input dense matrix, Output dense column
 forward Jacobian on SX. Input dense matrix, Output sparse column
 reverse Jacobian on SX. Input dense matrix, Output sparse column
 forward Jacobian on SX. Input sparse matrix, Output dense column
 reverse Jacobian on SX. Input sparse matrix, Output dense column
 forward Jacobian on SX. Input sparse matrix, Output sparse column
 reverse Jacobian on SX. Input sparse matrix, Output sparse column
 forward Jacobian on SX. Input dense matrix, Output dense row
 reverse Jacobian on SX. Input dense matrix, Output dense row
 forward Jacobian on SX. Input dense matrix, Output sparse row
 reverse Jacobian on SX. Input dense matrix, Output sparse row
 forward Jacobian on SX. Input sparse matrix, Output dense row
 reverse Jacobian on SX. Input sparse matrix, Output dense row
 forward Jacobian on SX. Input sparse matrix, Output sparse row
 reverse Jacobian on SX. Input sparse matrix, Output sparse row
 forward Jacobian on SX. Input dense matrix, Output dense matrix
 reverse Jacobian on SX. Input dense matrix, Output dense matrix
 forward Jacobian on SX. Input dense matrix, Output sparse matrix
 reverse Jacobian on SX. Input dense matrix, Output sparse matrix
 forward Jacobian on SX. Input sparse matrix, Output dense matrix
 reverse Jacobian on SX. Input sparse matrix, Output dense matrix
 forward Jacobian on SX. Input sparse matrix, Output sparse matrix
 reverse Jacobian on SX. Input sparse matrix, Output sparse matrix
deltaT ad.ADtests.test_Jacobian: 0.540
ok
test_JacobianMX (ad.ADtests) ... adj AD on MX. Input dense column, Output dense column
adj AD on MX. Input dense column, Output dense column
adj AD on MX. Input dense column, Output sparse column
adj AD on MX. Input dense column, Output sparse column
adj AD on MX. Input sparse column, Output dense column
adj AD on MX. Input sparse column, Output dense column
adj AD on MX. Input sparse column, Output sparse column
adj AD on MX. Input sparse column, Output sparse column
adj AD on MX. Input dense column, Output dense row
adj AD on MX. Input dense column, Output dense row
adj AD on MX. Input dense column, Output sparse row
adj AD on MX. Input dense column, Output sparse row
adj AD on MX. Input sparse column, Output dense row
adj AD on MX. Input sparse column, Output dense row
adj AD on MX. Input sparse column, Output sparse row
adj AD on MX. Input sparse column, Output sparse row
adj AD on MX. Input dense column, Output dense matrix
adj AD on MX. Input dense column, Output dense matrix
adj AD on MX. Input dense column, Output sparse matrix
adj AD on MX. Input dense column, Output sparse matrix
adj AD on MX. Input sparse column, Output dense matrix
adj AD on MX. Input sparse column, Output dense matrix
adj AD on MX. Input sparse column, Output sparse matrix
adj AD on MX. Input sparse column, Output sparse matrix
adj AD on MX. Input dense row, Output dense column
adj AD on MX. Input dense row, Output dense column
adj AD on MX. Input dense row, Output sparse column
adj AD on MX. Input dense row, Output sparse column
adj AD on MX. Input sparse row, Output dense column
adj AD on MX. Input sparse row, Output dense column
adj AD on MX. Input sparse row, Output sparse column
adj AD on MX. Input sparse row, Output sparse column
adj AD on MX. Input dense row, Output dense row
adj AD on MX. Input dense row, Output dense row
adj AD on MX. Input dense row, Output sparse row
adj AD on MX. Input dense row, Output sparse row
adj AD on MX. Input sparse row, Output dense row
adj AD on MX. Input sparse row, Output dense row
adj AD on MX. Input sparse row, Output sparse row
adj AD on MX. Input sparse row, Output sparse row
adj AD on MX. Input dense row, Output dense matrix
adj AD on MX. Input dense row, Output dense matrix
adj AD on MX. Input dense row, Output sparse matrix
adj AD on MX. Input dense row, Output sparse matrix
adj AD on MX. Input sparse row, Output dense matrix
adj AD on MX. Input sparse row, Output dense matrix
adj AD on MX. Input sparse row, Output sparse matrix
adj AD on MX. Input sparse row, Output sparse matrix
adj AD on MX. Input dense matrix, Output dense column
adj AD on MX. Input dense matrix, Output dense column
adj AD on MX. Input dense matrix, Output sparse column
adj AD on MX. Input dense matrix, Output sparse column
adj AD on MX. Input sparse matrix, Output dense column
adj AD on MX. Input sparse matrix, Output dense column
adj AD on MX. Input sparse matrix, Output sparse column
adj AD on MX. Input sparse matrix, Output sparse column
adj AD on MX. Input dense matrix, Output dense row
adj AD on MX. Input dense matrix, Output dense row
adj AD on MX. Input dense matrix, Output sparse row
adj AD on MX. Input dense matrix, Output sparse row
adj AD on MX. Input sparse matrix, Output dense row
adj AD on MX. Input sparse matrix, Output dense row
adj AD on MX. Input sparse matrix, Output sparse row
adj AD on MX. Input sparse matrix, Output sparse row
adj AD on MX. Input dense matrix, Output dense matrix
adj AD on MX. Input dense matrix, Output dense matrix
adj AD on MX. Input dense matrix, Output sparse matrix
adj AD on MX. Input dense matrix, Output sparse matrix
adj AD on MX. Input sparse matrix, Output dense matrix
adj AD on MX. Input sparse matrix, Output dense matrix
adj AD on MX. Input sparse matrix, Output sparse matrix
adj AD on MX. Input sparse matrix, Output sparse matrix
deltaT ad.ADtests.test_JacobianMX: 1.060
ok
test_MX (ad.ADtests) ... ERROR
deltaT ad.ADtests.test_MX: 1.069
test_MXeval_mx (ad.ADtests) ... eval_mx on MX. Input dense column, Output dense column
eval_mx on MX. Input dense column, Output sparse column
eval_mx on MX. Input sparse column, Output dense column
eval_mx on MX. Input sparse column, Output sparse column
eval_mx on MX. Input dense column, Output dense row
eval_mx on MX. Input dense column, Output sparse row
eval_mx on MX. Input sparse column, Output dense row
eval_mx on MX. Input sparse column, Output sparse row
eval_mx on MX. Input dense column, Output dense matrix
eval_mx on MX. Input dense column, Output sparse matrix
eval_mx on MX. Input sparse column, Output dense matrix
eval_mx on MX. Input sparse column, Output sparse matrix
eval_mx on MX. Input dense row, Output dense column
eval_mx on MX. Input dense row, Output sparse column
eval_mx on MX. Input sparse row, Output dense column
eval_mx on MX. Input sparse row, Output sparse column
eval_mx on MX. Input dense row, Output dense row
eval_mx on MX. Input dense row, Output sparse row
eval_mx on MX. Input sparse row, Output dense row
eval_mx on MX. Input sparse row, Output sparse row
eval_mx on MX. Input dense row, Output dense matrix
eval_mx on MX. Input dense row, Output sparse matrix
eval_mx on MX. Input sparse row, Output dense matrix
eval_mx on MX. Input sparse row, Output sparse matrix
eval_mx on MX. Input dense matrix, Output dense column
eval_mx on MX. Input dense matrix, Output sparse column
eval_mx on MX. Input sparse matrix, Output dense column
eval_mx on MX. Input sparse matrix, Output sparse column
eval_mx on MX. Input dense matrix, Output dense row
eval_mx on MX. Input dense matrix, Output sparse row
eval_mx on MX. Input sparse matrix, Output dense row
eval_mx on MX. Input sparse matrix, Output sparse row
eval_mx on MX. Input dense matrix, Output dense matrix
eval_mx on MX. Input dense matrix, Output sparse matrix
eval_mx on MX. Input sparse matrix, Output dense matrix
eval_mx on MX. Input sparse matrix, Output sparse matrix
deltaT ad.ADtests.test_MXeval_mx: 1.379
ok
test_MXeval_sx (ad.ADtests) ... skipped 'known bug (run with --known_bugs to include it)'
test_MXeval_sx_reduced (ad.ADtests) ... eval_sx on MX. Input dense column, Output dense column
eval_sx on MX. Input dense column, Output sparse column
eval_sx on MX. Input sparse column, Output dense column
eval_sx on MX. Input sparse column, Output sparse column
eval_sx on MX. Input dense column, Output dense row
eval_sx on MX. Input dense column, Output sparse row
eval_sx on MX. Input sparse column, Output dense row
eval_sx on MX. Input sparse column, Output sparse row
eval_sx on MX. Input dense column, Output dense matrix
eval_sx on MX. Input dense column, Output sparse matrix
eval_sx on MX. Input sparse column, Output dense matrix
eval_sx on MX. Input sparse column, Output sparse matrix
eval_sx on MX. Input dense row, Output dense column
eval_sx on MX. Input dense row, Output sparse column
eval_sx on MX. Input sparse row, Output dense column
eval_sx on MX. Input sparse row, Output sparse column
eval_sx on MX. Input dense row, Output dense row
eval_sx on MX. Input dense row, Output sparse row
eval_sx on MX. Input sparse row, Output dense row
eval_sx on MX. Input sparse row, Output sparse row
eval_sx on MX. Input dense row, Output dense matrix
eval_sx on MX. Input dense row, Output sparse matrix
eval_sx on MX. Input sparse row, Output dense matrix
eval_sx on MX. Input sparse row, Output sparse matrix
eval_sx on MX. Input dense matrix, Output dense column
eval_sx on MX. Input dense matrix, Output sparse column
eval_sx on MX. Input sparse matrix, Output dense column
eval_sx on MX. Input sparse matrix, Output sparse column
eval_sx on MX. Input dense matrix, Output dense row
eval_sx on MX. Input dense matrix, Output sparse row
eval_sx on MX. Input sparse matrix, Output dense row
eval_sx on MX. Input sparse matrix, Output sparse row
eval_sx on MX. Input dense matrix, Output dense matrix
eval_sx on MX. Input dense matrix, Output sparse matrix
eval_sx on MX. Input sparse matrix, Output dense matrix
eval_sx on MX. Input sparse matrix, Output sparse matrix
deltaT ad.ADtests.test_MXeval_sx_reduced: 1.465
ok
test_SXeval_sx (ad.ADtests) ... eval_sx on SX. Input dense column, Output dense column
eval_sx on SX. Input dense column, Output sparse column
eval_sx on SX. Input sparse column, Output dense column
eval_sx on SX. Input sparse column, Output sparse column
eval_sx on SX. Input dense column, Output dense row
eval_sx on SX. Input dense column, Output sparse row
eval_sx on SX. Input sparse column, Output dense row
eval_sx on SX. Input sparse column, Output sparse row
eval_sx on SX. Input dense column, Output dense matrix
eval_sx on SX. Input dense column, Output sparse matrix
eval_sx on SX. Input sparse column, Output dense matrix
eval_sx on SX. Input sparse column, Output sparse matrix
eval_sx on SX. Input dense row, Output dense column
eval_sx on SX. Input dense row, Output sparse column
eval_sx on SX. Input sparse row, Output dense column
eval_sx on SX. Input sparse row, Output sparse column
eval_sx on SX. Input dense row, Output dense row
eval_sx on SX. Input dense row, Output sparse row
eval_sx on SX. Input sparse row, Output dense row
eval_sx on SX. Input sparse row, Output sparse row
eval_sx on SX. Input dense row, Output dense matrix
eval_sx on SX. Input dense row, Output sparse matrix
eval_sx on SX. Input sparse row, Output dense matrix
eval_sx on SX. Input sparse row, Output sparse matrix
eval_sx on SX. Input dense matrix, Output dense column
eval_sx on SX. Input dense matrix, Output sparse column
eval_sx on SX. Input sparse matrix, Output dense column
eval_sx on SX. Input sparse matrix, Output sparse column
eval_sx on SX. Input dense matrix, Output dense row
eval_sx on SX. Input dense matrix, Output sparse row
eval_sx on SX. Input sparse matrix, Output dense row
eval_sx on SX. Input sparse matrix, Output sparse row
eval_sx on SX. Input dense matrix, Output dense matrix
eval_sx on SX. Input dense matrix, Output sparse matrix
eval_sx on SX. Input sparse matrix, Output dense matrix
eval_sx on SX. Input sparse matrix, Output sparse matrix
deltaT ad.ADtests.test_SXeval_sx: 1.687
ok
test_bugglibc (ad.ADtests) ... Code that used to throw a glibc error
deltaT ad.ADtests.test_bugglibc: 1.692
ok
test_bugshape (ad.ADtests) ... shape bug
deltaT ad.ADtests.test_bugshape: 1.696
ok
test_hessian (ad.ADtests) ... Jacobian chaining
deltaT ad.ADtests.test_hessian: 1.701
ok
test_jacobianSX (ad.ADtests) ... jacobian on SX (SCT). Input dense column, Output dense column
jacobian on SX (SCT). Input dense column, Output sparse column
jacobian on SX (SCT). Input sparse column, Output dense column
jacobian on SX (SCT). Input sparse column, Output sparse column
jacobian on SX (SCT). Input dense column, Output dense row
jacobian on SX (SCT). Input dense column, Output sparse row
jacobian on SX (SCT). Input sparse column, Output dense row
jacobian on SX (SCT). Input sparse column, Output sparse row
jacobian on SX (SCT). Input dense column, Output dense matrix
jacobian on SX (SCT). Input dense column, Output sparse matrix
jacobian on SX (SCT). Input sparse column, Output dense matrix
jacobian on SX (SCT). Input sparse column, Output sparse matrix
jacobian on SX (SCT). Input dense row, Output dense column
jacobian on SX (SCT). Input dense row, Output sparse column
jacobian on SX (SCT). Input sparse row, Output dense column
jacobian on SX (SCT). Input sparse row, Output sparse column
jacobian on SX (SCT). Input dense row, Output dense row
jacobian on SX (SCT). Input dense row, Output sparse row
jacobian on SX (SCT). Input sparse row, Output dense row
jacobian on SX (SCT). Input sparse row, Output sparse row
jacobian on SX (SCT). Input dense row, Output dense matrix
jacobian on SX (SCT). Input dense row, Output sparse matrix
jacobian on SX (SCT). Input sparse row, Output dense matrix
jacobian on SX (SCT). Input sparse row, Output sparse matrix
jacobian on SX (SCT). Input dense matrix, Output dense column
jacobian on SX (SCT). Input dense matrix, Output sparse column
jacobian on SX (SCT). Input sparse matrix, Output dense column
jacobian on SX (SCT). Input sparse matrix, Output sparse column
jacobian on SX (SCT). Input dense matrix, Output dense row
jacobian on SX (SCT). Input dense matrix, Output sparse row
jacobian on SX (SCT). Input sparse matrix, Output dense row
jacobian on SX (SCT). Input sparse matrix, Output sparse row
jacobian on SX (SCT). Input dense matrix, Output dense matrix
jacobian on SX (SCT). Input dense matrix, Output sparse matrix
jacobian on SX (SCT). Input sparse matrix, Output dense matrix
jacobian on SX (SCT). Input sparse matrix, Output sparse matrix
deltaT ad.ADtests.test_jacobianSX: 1.962
ok
test_jacsparsity (ad.ADtests) ... jacsparsity on SX. Input dense column, Output dense column
jacsparsity on SX. Input dense column, Output sparse column
jacsparsity on SX. Input sparse column, Output dense column
jacsparsity on SX. Input sparse column, Output sparse column
jacsparsity on SX. Input dense column, Output dense row
jacsparsity on SX. Input dense column, Output sparse row
jacsparsity on SX. Input sparse column, Output dense row
jacsparsity on SX. Input sparse column, Output sparse row
jacsparsity on SX. Input dense column, Output dense matrix
jacsparsity on SX. Input dense column, Output sparse matrix
jacsparsity on SX. Input sparse column, Output dense matrix
jacsparsity on SX. Input sparse column, Output sparse matrix
jacsparsity on SX. Input dense row, Output dense column
jacsparsity on SX. Input dense row, Output sparse column
jacsparsity on SX. Input sparse row, Output dense column
jacsparsity on SX. Input sparse row, Output sparse column
jacsparsity on SX. Input dense row, Output dense row
jacsparsity on SX. Input dense row, Output sparse row
jacsparsity on SX. Input sparse row, Output dense row
jacsparsity on SX. Input sparse row, Output sparse row
jacsparsity on SX. Input dense row, Output dense matrix
jacsparsity on SX. Input dense row, Output sparse matrix
jacsparsity on SX. Input sparse row, Output dense matrix
jacsparsity on SX. Input sparse row, Output sparse matrix
jacsparsity on SX. Input dense matrix, Output dense column
jacsparsity on SX. Input dense matrix, Output sparse column
jacsparsity on SX. Input sparse matrix, Output dense column
jacsparsity on SX. Input sparse matrix, Output sparse column
jacsparsity on SX. Input dense matrix, Output dense row
jacsparsity on SX. Input dense matrix, Output sparse row
jacsparsity on SX. Input sparse matrix, Output dense row
jacsparsity on SX. Input sparse matrix, Output sparse row
jacsparsity on SX. Input dense matrix, Output dense matrix
jacsparsity on SX. Input dense matrix, Output sparse matrix
jacsparsity on SX. Input sparse matrix, Output dense matrix
jacsparsity on SX. Input sparse matrix, Output sparse matrix
deltaT ad.ADtests.test_jacsparsity: 2.098
ok
test_jacsparsityMX (ad.ADtests) ...  forward jacobian on MX (SCT). Input dense column, Output dense column
 reverse jacobian on MX (SCT). Input dense column, Output dense column
 forward jacobian on MX (SCT). Input dense column, Output sparse column
 reverse jacobian on MX (SCT). Input dense column, Output sparse column
 forward jacobian on MX (SCT). Input sparse column, Output dense column
 reverse jacobian on MX (SCT). Input sparse column, Output dense column
 forward jacobian on MX (SCT). Input sparse column, Output sparse column
 reverse jacobian on MX (SCT). Input sparse column, Output sparse column
 forward jacobian on MX (SCT). Input dense column, Output dense row
 reverse jacobian on MX (SCT). Input dense column, Output dense row
 forward jacobian on MX (SCT). Input dense column, Output sparse row
 reverse jacobian on MX (SCT). Input dense column, Output sparse row
 forward jacobian on MX (SCT). Input sparse column, Output dense row
 reverse jacobian on MX (SCT). Input sparse column, Output dense row
 forward jacobian on MX (SCT). Input sparse column, Output sparse row
 reverse jacobian on MX (SCT). Input sparse column, Output sparse row
 forward jacobian on MX (SCT). Input dense column, Output dense matrix
 reverse jacobian on MX (SCT). Input dense column, Output dense matrix
 forward jacobian on MX (SCT). Input dense column, Output sparse matrix
 reverse jacobian on MX (SCT). Input dense column, Output sparse matrix
 forward jacobian on MX (SCT). Input sparse column, Output dense matrix
 reverse jacobian on MX (SCT). Input sparse column, Output dense matrix
 forward jacobian on MX (SCT). Input sparse column, Output sparse matrix
 reverse jacobian on MX (SCT). Input sparse column, Output sparse matrix
 forward jacobian on MX (SCT). Input dense row, Output dense column
 reverse jacobian on MX (SCT). Input dense row, Output dense column
 forward jacobian on MX (SCT). Input dense row, Output sparse column
 reverse jacobian on MX (SCT). Input dense row, Output sparse column
 forward jacobian on MX (SCT). Input sparse row, Output dense column
 reverse jacobian on MX (SCT). Input sparse row, Output dense column
 forward jacobian on MX (SCT). Input sparse row, Output sparse column
 reverse jacobian on MX (SCT). Input sparse row, Output sparse column
 forward jacobian on MX (SCT). Input dense row, Output dense row
 reverse jacobian on MX (SCT). Input dense row, Output dense row
 forward jacobian on MX (SCT). Input dense row, Output sparse row
 reverse jacobian on MX (SCT). Input dense row, Output sparse row
 forward jacobian on MX (SCT). Input sparse row, Output dense row
 reverse jacobian on MX (SCT). Input sparse row, Output dense row
 forward jacobian on MX (SCT). Input sparse row, Output sparse row
 reverse jacobian on MX (SCT). Input sparse row, Output sparse row
 forward jacobian on MX (SCT). Input dense row, Output dense matrix
 reverse jacobian on MX (SCT). Input dense row, Output dense matrix
 forward jacobian on MX (SCT). Input dense row, Output sparse matrix
 reverse jacobian on MX (SCT). Input dense row, Output sparse matrix
 forward jacobian on MX (SCT). Input sparse row, Output dense matrix
 reverse jacobian on MX (SCT). Input sparse row, Output dense matrix
 forward jacobian on MX (SCT). Input sparse row, Output sparse matrix
 reverse jacobian on MX (SCT). Input sparse row, Output sparse matrix
 forward jacobian on MX (SCT). Input dense matrix, Output dense column
 reverse jacobian on MX (SCT). Input dense matrix, Output dense column
 forward jacobian on MX (SCT). Input dense matrix, Output sparse column
 reverse jacobian on MX (SCT). Input dense matrix, Output sparse column
 forward jacobian on MX (SCT). Input sparse matrix, Output dense column
 reverse jacobian on MX (SCT). Input sparse matrix, Output dense column
 forward jacobian on MX (SCT). Input sparse matrix, Output sparse column
 reverse jacobian on MX (SCT). Input sparse matrix, Output sparse column
 forward jacobian on MX (SCT). Input dense matrix, Output dense row
 reverse jacobian on MX (SCT). Input dense matrix, Output dense row
 forward jacobian on MX (SCT). Input dense matrix, Output sparse row
 reverse jacobian on MX (SCT). Input dense matrix, Output sparse row
 forward jacobian on MX (SCT). Input sparse matrix, Output dense row
 reverse jacobian on MX (SCT). Input sparse matrix, Output dense row
 forward jacobian on MX (SCT). Input sparse matrix, Output sparse row
 reverse jacobian on MX (SCT). Input sparse matrix, Output sparse row
 forward jacobian on MX (SCT). Input dense matrix, Output dense matrix
 reverse jacobian on MX (SCT). Input dense matrix, Output dense matrix
 forward jacobian on MX (SCT). Input dense matrix, Output sparse matrix
 reverse jacobian on MX (SCT). Input dense matrix, Output sparse matrix
 forward jacobian on MX (SCT). Input sparse matrix, Output dense matrix
 reverse jacobian on MX (SCT). Input sparse matrix, Output dense matrix
 forward jacobian on MX (SCT). Input sparse matrix, Output sparse matrix
 reverse jacobian on MX (SCT). Input sparse matrix, Output sparse matrix
deltaT ad.ADtests.test_jacsparsityMX: 3.089
ok
test_badscaling (conic.ConicTests) ... Badly scaled problem
ERROR
deltaT conic.ConicTests.test_badscaling: 3.095
test_degenerate_hessian (conic.ConicTests) ... Degenerate hessian
degenerate hessian: nlpsol
ERROR
deltaT conic.ConicTests.test_degenerate_hessian: 3.096
test_equality (conic.ConicTests) ... Regression 452 test: equality constraints give wrong multipliers
equality: nlpsol
ERROR
deltaT conic.ConicTests.test_equality: 3.096
test_general_convex_dense (conic.ConicTests) ... Convex dense QP with solvers: ['nlpsol', 'qpoases', 'clp', 'activeset']
general_convex: nlpsol
ERROR
deltaT conic.ConicTests.test_general_convex_dense: 3.096
test_general_convex_sparse (conic.ConicTests) ... Convex sparse QP with solvers: ['nlpsol', 'qpoases', 'clp', 'activeset']
ERROR
deltaT conic.ConicTests.test_general_convex_sparse: 3.097
test_general_nonconvex_dense (conic.ConicTests) ... Non convex dense QP with solvers: ['nlpsol', 'qpoases', 'clp', 'activeset']
general_nonconvex: nlpsol
general_nonconvex: qpoases
general_nonconvex: clp
general_nonconvex: activeset
deltaT conic.ConicTests.test_general_nonconvex_dense: 3.097
ok
test_hpmc_timevarying (conic.ConicTests) ... ERROR
deltaT conic.ConicTests.test_hpmc_timevarying: 3.098
test_hpmpc (conic.ConicTests) ...
[[4.8, -3.33, 0.9, -3, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00],
 [2.1, 3, 00, 00, -3, 00, 00, 00, 00, 00, 00, 00, 00, 00],
 [00, 0.1, -0.05, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00],
 [00, 00, 00, 4.8, -3.33, 0.9, -3, 00, 00, 00, 00, 00, 00, 00],
 [00, 00, 00, 2.1, 3, 00, 00, -3, 00, 00, 00, 00, 00, 00],
 [00, 00, 00, 00, 0.1, -0.05, 00, 00, 00, 00, 00, 00, 00, 00],
 [00, 00, 00, 00, 00, 00, 4.8, -3.33, 0.9, -3, 00, 00, 00, 00],
 [00, 00, 00, 00, 00, 00, 2.1, 3, 00, 00, -3, 00, 00, 00],
 [00, 00, 00, 00, 00, 00, 00, 0.1, -0.05, 00, 00, 00, 00, 00],
 [00, 00, 00, 00, 00, 00, 00, 00, 00, 4.8, -3.33, 0.9, -3, 00],
 [00, 00, 00, 00, 00, 00, 00, 00, 00, 2.1, 3, 00, 00, -3],
 [00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 0.1, -0.05, 00, 00],
 [00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 00, 0.1]]ERROR
deltaT conic.ConicTests.test_hpmpc: 3.105
test_linear (conic.ConicTests) ... ERROR
deltaT conic.ConicTests.test_linear: 3.106
test_linear2 (conic.ConicTests) ... ERROR
deltaT conic.ConicTests.test_linear2: 3.106
test_no_A (conic.ConicTests) ... No A present
no A: nlpsol
ERROR
deltaT conic.ConicTests.test_no_A: 3.107
test_no_inequality (conic.ConicTests) ... No inequalities present
no inequality: nlpsol
ERROR
deltaT conic.ConicTests.test_no_inequality: 3.107
test_redundant (conic.ConicTests) ... Redundant constraints
ERROR
deltaT conic.ConicTests.test_redundant: 3.108
test_standard_form (conic.ConicTests) ... ERROR
deltaT conic.ConicTests.test_standard_form: 3.108
test_1d_bspline (function.Functiontests) ... ERROR
deltaT function.Functiontests.test_1d_bspline: 3.110
test_1d_interpolant (function.Functiontests) ... Segmentation fault (core dumped)

Slava Kungurtsev

unread,
Mar 15, 2018, 3:46:11 AM3/15/18
to CasADi
Sorry for the long output wasn't sure what was the most relevant. Any thoughts thus far?

Bruno Martins Lima

unread,
Mar 15, 2018, 9:12:40 AM3/15/18
to CasADi
Hi! 

For NMHE, I recommend the toolbox MPCTools from the Rawlings group which is based in CasADi. Since NMHE is pretty standard, it is easier to use the functions of the toolbox. They also implement three arrival costs: filtering, smoothing and hybrid.

Kind regards,
Bruno

Slava Kungurtsev

unread,
Mar 18, 2018, 2:23:37 PM3/18/18
to CasADi
That's actually exactly what I'm trying to do. But first I need to get CasADi installed and working, in particular the MATLAB interface.

Joris Gillis

unread,
Mar 19, 2018, 5:25:34 AM3/19/18
to CasADi
Sorry for the long delay, was busy..
Let's focus on the Matlab issue.

With the binaries, you're supposed to have the following file on your filesystem:

somepath/+casadi/MX.m

It's the somepath than needs to be added to the Matlab path (without subfolders).

The "MX is undefined." error indicates that this is not the case for you?

Instead of

import casadi.*
MX.sym('x')

what about:

casadi.MX.sym('x')

Also, what is your Matlab version?

Best regards,
  Joris

Slava Kungurtsev

unread,
Mar 20, 2018, 3:07:31 AM3/20/18
to CasADi
The output:
 addpath dev
>> addpath dev/casadi

>> import casadi.*
x = MX.sym('x')
Undefined variable "MX" or class "MX.sym".
>> casadi.MX.sym('x')
Undefined variable "casadi" or class "casadi.MX.sym".
>> addpath dev/casadi/casadi

>> x = MX.sym('x')


I actually don't see any MX.m file in the casadi directory.

MATLAB is 2015b

Joris Gillis

unread,
Mar 20, 2018, 4:56:21 AM3/20/18
to CasADi
So to recap, you tried the following file:

https://github.com/casadi/casadi/releases/download/3.4.0/casadi-linux-matlabR2014b-v3.4.0.tar.gz

And you didn't find a file 'MX.m' after unpacking?
That's... interesting:-p

You're supposed to get see four folders 'casadi' '+casadi' 'cmake' and 'inlcude'.
The '+casadi' folder contains 'MX.m'

How are you unpacking that archive?

Best,
  Joris

Slava Kungurtsev

unread,
Mar 20, 2018, 5:26:36 PM3/20/18
to CasADi
Oh, I must have not downloaded and installed the right version, I installed things from the source I think, as well as trying pip install, but apparently that doesn't build the matlab? I was not seeing these folders I was supposed to.
When I tried downloading and extracting the "matlab" version and then testing it, now it works. Thanks.

I think I seemed to remember everything, including the python and matlab interface, being included as part of one major package, hence the confusion.
Reply all
Reply to author
Forward
0 new messages