From b4fe1077092f3dc1c1d965e938b00e0a0d0694d0 Mon Sep 17 00:00:00 2001 From: Harpreet Date: Tue, 22 Dec 2015 16:22:14 +0530 Subject: bugs fixed 4 --- jar/scilab_en_US_help.jar | Bin 215075 -> 215075 bytes macros/symphonymat.bin | Bin 60724 -> 60724 bytes macros/symphonymat.sci | 24 ++++++++++++------------ 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/jar/scilab_en_US_help.jar b/jar/scilab_en_US_help.jar index 73ff5f1..5b41fec 100644 Binary files a/jar/scilab_en_US_help.jar and b/jar/scilab_en_US_help.jar differ diff --git a/macros/symphonymat.bin b/macros/symphonymat.bin index c123d3c..c6d4fbc 100644 Binary files a/macros/symphonymat.bin and b/macros/symphonymat.bin differ diff --git a/macros/symphonymat.sci b/macros/symphonymat.sci index f7e08ac..9226bd6 100644 --- a/macros/symphonymat.sci +++ b/macros/symphonymat.sci @@ -235,20 +235,20 @@ function [xopt,fopt,status,iter] = symphonymat (varargin) end for i=1:size(intcon,2) - if(intcon(i)>nbVar) then - errmsg = msprintf(gettext("%s: The values inside intcon should not exceed total number of variable "), "Symphonymat"); - error(errmsg); - end + if(intcon(i)>nbVar) then + errmsg = msprintf(gettext("%s: The values inside intcon should not exceed total number of variable "), "Symphonymat"); + error(errmsg); + end - if (intcon(i)<1) then - errmsg = msprintf(gettext("%s: The values inside intcon should be greater than 0 "), "Symphonymat"); - error(errmsg); - end + if (intcon(i)<0) then + errmsg = msprintf(gettext("%s: The values inside intcon should be greater than 0 "), "Symphonymat"); + error(errmsg); + end - if(modulo(intcon(i),1)) then - errmsg = msprintf(gettext("%s: The values inside intcon should be integer "), "Symphonymat"); - error(errmsg); - end + if(modulo(intcon(i),1)) then + errmsg = msprintf(gettext("%s: The values inside intcon should be integer "), "Symphonymat"); + error(errmsg); + end end //Check the size of inequality constraint which should equal to the number of inequality constraints -- cgit