summaryrefslogtreecommitdiff
path: root/macros/symphonymat.sci
diff options
context:
space:
mode:
authorHarpreet2015-12-22 16:22:14 +0530
committerHarpreet2015-12-22 16:22:14 +0530
commitb4fe1077092f3dc1c1d965e938b00e0a0d0694d0 (patch)
tree9f0613d7dcf0353beaef2b6daff92e1e3e2386c8 /macros/symphonymat.sci
parent6e9ee19cd67b0b85b7708efa4847c7ebb6d79f24 (diff)
downloadsymphony-b4fe1077092f3dc1c1d965e938b00e0a0d0694d0.tar.gz
symphony-b4fe1077092f3dc1c1d965e938b00e0a0d0694d0.tar.bz2
symphony-b4fe1077092f3dc1c1d965e938b00e0a0d0694d0.zip
bugs fixed 4
Diffstat (limited to 'macros/symphonymat.sci')
-rw-r--r--macros/symphonymat.sci24
1 files changed, 12 insertions, 12 deletions
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