classdef LP
properties
eqs
A
end
methods
function problem = LP(eqs)
problem.eqs = eqs;
end
function n = numel(problem)
n = numel(problem.eqs);
end
end
end
p = LP(1);
p.A = 1; % ok
mx = casadi.MX.sym('mx',3,1);
p = LP(mx);
p.A = 1; % not ok
error: invalid assignment to cs-list outside multiple assignment
I think you just constructed an example that fails regardless of casadi (replace mx by zeros(2,1))?
If so, consider posting it to https://savannah.gnu.org/bugs/?46571 No need to mention casadi there..
Best,
Joris