[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
## error: quadprog: equality constraint matrix has incorrect column dimensi

**From**: |
ola |

**Subject**: |
error: quadprog: equality constraint matrix has incorrect column dimension |

**Date**: |
Fri, 18 Jan 2019 04:12:46 -0600 (CST) |

I try to use lsqlin solver from optim package in c++ implementation. My code
is compiled, but returns an error when executing:
*error: quadprog: equality constraint matrix has incorrect column dimension*
I use octave 4.4.0 and optim 1.5.3.
Here is the code: test_lsqlin.cc
<http://octave.1599824.n4.nabble.com/file/t373160/test_lsqlin.cc>
I also tried to set the exact column dimension in the equality constraint
matrix (in my code matrix c), but it also doesn't work.
In my case matrices/vectors: A, b, Aeq, beq, x0 should be empty (x =
lsqlin(C,d,A,b,Aeq,beq,lb,ub,x0,options)).
Could you help me, what am I doing wrong?
-----
ola
--
Sent from: http://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

**error: quadprog: equality constraint matrix has incorrect column dimension**,
*ola* **<=**