diff options
Diffstat (limited to 'tests/general_tests/qpipoptmat/qpipoptmat_logical2.sce')
-rw-r--r-- | tests/general_tests/qpipoptmat/qpipoptmat_logical2.sce | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/general_tests/qpipoptmat/qpipoptmat_logical2.sce b/tests/general_tests/qpipoptmat/qpipoptmat_logical2.sce index e316253..137c7bb 100644 --- a/tests/general_tests/qpipoptmat/qpipoptmat_logical2.sce +++ b/tests/general_tests/qpipoptmat/qpipoptmat_logical2.sce @@ -13,7 +13,8 @@ ub=[10000; 100; 1.5; 100; 100; 1000]; param = list("MaxIter", 300, "CpuTime",100); //and minimize 0.5*x'*H*x + f'*x with f=[1; 2; 3; 4; 5; 6]; H=eye(6,6); -[xopt,fopt,exitflag,output,lambda]=qpipoptmat(H,f,A,b,Aeq,beq,lb,ub,[],param); +x0 = repmat(0,6,1); +[xopt,fopt,exitflag,output,lambda]=qpipoptmat(H,f,A,b,Aeq,beq,lb,ub,x0,param); //Output // @@ -27,7 +28,7 @@ f=[1; 2; 3; 4; 5; 6]; H=eye(6,6); // lambda // // Iterations: 13 -// +// ConstrViolation: 9.968D-09 // output // // 0 |