diff options
author | Harpreet | 2015-11-24 12:11:19 +0530 |
---|---|---|
committer | Harpreet | 2015-11-24 12:11:19 +0530 |
commit | 8cf5063387ba60907e8e114b128abe5555922ad7 (patch) | |
tree | a5f34ca7775b09d3022a0e651f39c5615d5d45ac /macros/qpipoptmat.sci | |
parent | 92e88ea2600cc66ff8e8b7bb9c63bf72d78f1619 (diff) | |
download | FOSSEE-Optimization-toolbox-8cf5063387ba60907e8e114b128abe5555922ad7.tar.gz FOSSEE-Optimization-toolbox-8cf5063387ba60907e8e114b128abe5555922ad7.tar.bz2 FOSSEE-Optimization-toolbox-8cf5063387ba60907e8e114b128abe5555922ad7.zip |
qpipoptmat errors updated
Diffstat (limited to 'macros/qpipoptmat.sci')
-rw-r--r-- | macros/qpipoptmat.sci | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/macros/qpipoptmat.sci b/macros/qpipoptmat.sci index 33e3bd6..0adc0bd 100644 --- a/macros/qpipoptmat.sci +++ b/macros/qpipoptmat.sci @@ -158,7 +158,7 @@ function [xopt,fopt,exitflag,output,lambda] = qpipoptmat (varargin) end if (type(param) ~= 15) then - errmsg = msprintf(gettext("%s: param should be a list "), "qpipopt"); + errmsg = msprintf(gettext("%s: param should be a list "), "qpipoptmat"); error(errmsg); end @@ -270,51 +270,51 @@ function [xopt,fopt,exitflag,output,lambda] = qpipoptmat (varargin) //Check the size of initial of variables which should equal to the number of variables if ( size(x0,1) ~= nbVar) then - warnmsg = msprintf(gettext("%s: Ignoring initial guess of variables as it is not equal to the number of variables"), "qpipopt"); + warnmsg = msprintf(gettext("%s: Ignoring initial guess of variables as it is not equal to the number of variables"), "qpipoptmat"); warning(warnmsg); end //Check if the user gives a matrix instead of a vector if ((size(f,1)~=1)& (size(f,2)~=1)) then - errmsg = msprintf(gettext("%s: f should be a vector"), "qpipopt"); + errmsg = msprintf(gettext("%s: f should be a vector"), "qpipoptmat"); error(errmsg); end if (size(LB,1)~=1)& (size(LB,2)~=1) then - errmsg = msprintf(gettext("%s: Lower Bound should be a vector"), "qpipopt"); + errmsg = msprintf(gettext("%s: Lower Bound should be a vector"), "qpipoptmat"); error(errmsg); end if (size(UB,1)~=1)& (size(UB,2)~=1) then - errmsg = msprintf(gettext("%s: Upper Bound should be a vector"), "qpipopt"); + errmsg = msprintf(gettext("%s: Upper Bound should be a vector"), "qpipoptmat"); error(errmsg); end if (nbConInEq) then if ((size(b,1)~=1)& (size(b,2)~=1)) then - errmsg = msprintf(gettext("%s: Constraint Lower Bound should be a vector"), "qpipopt"); + errmsg = msprintf(gettext("%s: Constraint Lower Bound should be a vector"), "qpipoptmat"); error(errmsg); end end if (nbConEq) then if (size(beq,1)~=1)& (size(beq,2)~=1) then - errmsg = msprintf(gettext("%s: Constraint should be a vector"), "qpipopt"); + errmsg = msprintf(gettext("%s: Constraint should be a vector"), "qpipoptmat"); error(errmsg); end end for i = 1:nbConInEq if (b(i) == -%inf) - errmsg = msprintf(gettext("%s: Value of b can not be negative infinity"), "qpipopt"); + errmsg = msprintf(gettext("%s: Value of b can not be negative infinity"), "qpipoptmat"); error(errmsg); end end for i = 1:nbConEq if (beq(i) == -%inf) - errmsg = msprintf(gettext("%s: Value of beq can not be negative infinity"), "qpipopt"); + errmsg = msprintf(gettext("%s: Value of beq can not be negative infinity"), "qpipoptmat"); error(errmsg); end end |