Optimization: minor fix for qpsolve 54/13254/3
Paul Bignier [Wed, 27 Nov 2013 15:02:01 +0000 (16:02 +0100)]
Typo fixed + removed out useless instructions.

Change-Id: I8e14dbb7c901dc72c0b73e7424bdd936b951c0b9

scilab/modules/optimization/macros/qpsolve.sci

index d972236..8e96240 100644 (file)
 function [x, iact, iter, f]=qpsolve(Q,p,C,b,ci,cs,me)
     rhs = argn(2);
     if rhs <> 7
-        error(msprintf(gettext("%s: Wrong number of input argument(s): %d expected.\n"), "qsolve", 7));
+        error(msprintf(gettext("%s: Wrong number of input argument(s): %d expected.\n"), "qpsolve", 7));
     end
-    Cb=[];bb=[];
-    isCsparse=typeof(C)=="sparse"|ci<>[]|cs<>[]
     C(me+1:$,:)=-C(me+1:$,:);
     b(me+1:$)=-b(me+1:$);
-    // replace boundary contraints by linear constraints
+    // Replace boundary contraints by linear constraints
     Cb=[];bb=[];
     if ci<>[] then
         Cb=[Cb;speye(Q)]