From f7c5cbc61d5b52c749824298cfa39a95db2d879c Mon Sep 17 00:00:00 2001 From: Harpreet Date: Fri, 29 Jan 2016 16:38:03 +0530 Subject: linprog general tests added --- macros/symphony.sci | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'macros/symphony.sci') diff --git a/macros/symphony.sci b/macros/symphony.sci index 81b24fb..111f84c 100644 --- a/macros/symphony.sci +++ b/macros/symphony.sci @@ -219,6 +219,17 @@ function [xopt,fopt,status,output] = symphony (varargin) options = varargin(11); end + //Check type of variables + Checktype("symphony", nbVar, "nbVar", 1, "constant") + Checktype("symphony", nbCon, "nbCon", 2, "constant") + Checktype("symphony", c, "c", 3, "constant") + Checktype("symphony", isInt, "isInt", 4, "boolean") + Checktype("symphony", lb, "lb", 5, "constant") + Checktype("symphony", ub, "lb", 6, "constant") + Checktype("symphony", A, "A", 7, "constant") + Checktype("symphony", conLB, "conlb", 8, "constant") + Checktype("symphony", conUB, "conub", 9, "constant") + // Check if the user gives empty matrix if (size(lb,2)==0) then lb = repmat(-%inf,nbVar,1); -- cgit