diff options
Diffstat (limited to 'tests/general_tests/qpipopt/qpipopt_logical_2.sce')
-rw-r--r-- | tests/general_tests/qpipopt/qpipopt_logical_2.sce | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/general_tests/qpipopt/qpipopt_logical_2.sce b/tests/general_tests/qpipopt/qpipopt_logical_2.sce index 933508b..a61e416 100644 --- a/tests/general_tests/qpipopt/qpipopt_logical_2.sce +++ b/tests/general_tests/qpipopt/qpipopt_logical_2.sce @@ -1,16 +1,14 @@ // A simple example without constraints -conMatrix= []; +A= []; conLB=[]; conUB = []; lb=[]; ub=[]; -p=[2 -35 -47]'; -Q =[5 -2 -1; -2 4 3; -1 3 5]; +f=[2 -35 -47]'; +H =[5 -2 -1; -2 4 3; -1 3 5]; nbVar = 3; nbCon = 0; -[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,Q,p,lb,ub,conMatrix,conLB,conUB) -disp("xopt",xopt,"fopt",fopt,"exitflag",exitflag,"output",output,"lambda",lambda) //Output @@ -40,3 +38,8 @@ disp("xopt",xopt,"fopt",fopt,"exitflag",exitflag,"output",output,"lambda",lambda // 7. // // xopt + +[xopt,fopt,exitflag,output,lambda]=qpipopt(nbVar,nbCon,H,f,lb,ub,A,conLB,conUB); +disp("xopt",xopt,"fopt",fopt,"exitflag",exitflag,"output",output,"lambda",lambda); + + |