diff options
author | Harpreet | 2016-01-29 16:38:03 +0530 |
---|---|---|
committer | Harpreet | 2016-01-29 16:38:03 +0530 |
commit | f7c5cbc61d5b52c749824298cfa39a95db2d879c (patch) | |
tree | 27aafcca0159b7b3bb2926ff3a9c6c25834980d2 /macros/symphonymat.sci | |
parent | 2db803c34c6df02379ec88df3a7aa186700d9fbf (diff) | |
download | symphony-f7c5cbc61d5b52c749824298cfa39a95db2d879c.tar.gz symphony-f7c5cbc61d5b52c749824298cfa39a95db2d879c.tar.bz2 symphony-f7c5cbc61d5b52c749824298cfa39a95db2d879c.zip |
linprog general tests added
Diffstat (limited to 'macros/symphonymat.sci')
-rw-r--r-- | macros/symphonymat.sci | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/macros/symphonymat.sci b/macros/symphonymat.sci index 3848850..2016f00 100644 --- a/macros/symphonymat.sci +++ b/macros/symphonymat.sci @@ -227,6 +227,16 @@ function [xopt,fopt,status,iter] = symphonymat (varargin) options = varargin(9); end + //Check type of variables + Checktype("symphonymat", c, "c", 1, "constant") + Checktype("symphonymat", intcon, "intcon", 2, "constant") + Checktype("symphonymat", A, "A", 3, "constant") + Checktype("symphonymat", b, "b", 4, "constant") + Checktype("symphonymat", Aeq, "Aeq", 5, "constant") + Checktype("symphonymat", beq, "beq", 6, "constant") + Checktype("symphonymat", lb, "lb", 7, "constant") + Checktype("symphonymat", ub, "ub", 8, "constant") + // Check if the user gives empty matrix if (size(lb,2)==0) then lb = repmat(-%inf,nbVar,1); |