Navigation

Operators and Keywords

Function List:

C++ API

glpkmex.m File Reference


Functions

 if (nargin > 4) ctype
endif if (nargin > 5) lb
endif if (nargin > 6) ub
endif if (nargin > 7) vartype
endif if (nargin > 8) param
endif if (nargin > 9 &&!isfield(param,"lpsolver")) param.lpsolver
endif if (nargin > 10 &&!isfield(param,"save")) param.save
endif if (nargout==0) glpk(c
 elseif (nargout==1) xopt

Variables

 function [xopt, fopt, status, extra]
 return
endif sense = varargin{1}
 c = varargin{2}
 a = varargin{3}
 b = varargin{4}
 nx = length (c)
else ctype = repmat ("U", nx, 1)
else lb = repmat (-Inf, nx, 1)
else ub = repmat (Inf, nx, 1)
else vartype = repmat ("C", nx, 1)
else param = struct ()
 fopt = glpk (c, a, b, lb, ub, ctype, vartype, sense, param)
 status
 else [xopt, fopt, status, extra]

Function Documentation

elseif ( nargout  = = 1  ) 

endif if ( nargout  = = 0  ) 

endif if ( nargin  ,
10 &&!  isfieldparam,"save" 
)

endif if ( nargin  ,
9 &&!  isfieldparam,"lpsolver" 
)

endif if ( nargin  ,
 
)

endif if ( nargin  ,
 
)

endif if ( nargin  ,
 
)

endif if ( nargin  ,
 
)

if ( nargin  ,
 
)


Variable Documentation

endif a = varargin{3}

endif b = varargin{4}

c = varargin{2}

endif ctype = repmat ("U", nx, 1)

else[xopt, fopt, status, extra]

Initial value:

 ...
      glpk (c, a, b, lb, ub, ctype, vartype, sense, param)

fopt = glpk (c, a, b, lb, ub, ctype, vartype, sense, param)

function[xopt, fopt, status, extra]

Initial value:

 glpkmex (varargin)


  if (nargin < 4 || nargin > 11)
    print_usage ()

endif lb = repmat (-Inf, nx, 1)

nx = length (c)

endif param = struct ()

return

endif sense = varargin{1}

Initial value:

 ...
      glpk (c, a, b, lb, ub, ctype, vartype, sense, param)

endif ub = repmat (Inf, nx, 1)

endif vartype = repmat ("C", nx, 1)