[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
qp help
From: |
Myriam Abramson |
Subject: |
qp help |
Date: |
Fri, 22 Feb 2013 22:58:52 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
Hello,
I am trying to use qp and I need to specify the maximum number of
iterations but I don't know how to do that. I did the following with
no success. I have Octave 3.4.3 on Ubuntu 12.04. Please help!
H=[1.0 0.5 0 0;0.5 1 0 0;0 0 0 0; 0 0 0 0];
A=[1 2 1 0;1 1 0 1];
lb=[0 0 0 0];
ub=[1.0e+22 1.0e+22 1.0e+22 1.0e+22 ];
b=[7;5];
c=[10;11;0;0];
options=optimset('MaxIter',1000);
octave> qp([],H,c,A,b,lb,ub,[],[],[],options);
error: qp: inequality constraint matrix has incorrect column dimension
error: called from:
error: /usr/local/share/octave/3.4.3/m/optimization/qp.m at line 252, column 9
--
myriam
Go Proverb:
Add one stone, then sacrifice both.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- qp help,
Myriam Abramson <=