GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Macros | Functions | Variables
__glpk__.cc File Reference
#include <cfloat>
#include <csetjmp>
#include <ctime>
#include "lo-ieee.h"
#include "defun-dld.h"
#include "error.h"
#include "gripes.h"
#include "oct-map.h"
#include "oct-obj.h"
#include "pager.h"
#include <glpk.h>
Include dependency graph for __glpk__.cc:

Go to the source code of this file.

Classes

struct  control_params

Macros

#define OCTAVE_GLPK_GET_INT_PARAM(NAME, VAL)
#define OCTAVE_GLPK_GET_REAL_PARAM(NAME, VAL)

Functions

 DEFUN_DLD (__glpk__, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {[@var{values}] =} __glpk__ (@var{args})\n\ Undocumented internal function.\n\ @end deftypefn")
int glpk (int sense, int n, int m, double *c, int nz, int *rn, int *cn, double *a, double *b, char *ctype, int *freeLB, double *lb, int *freeUB, double *ub, int *vartype, int isMIP, int lpsolver, int save_pb, int scale, const control_params *par, double *xmin, double *fmin, int *status, double *lambda, double *redcosts, double *time)

Variables

static jmp_buf mark

Macro Definition Documentation

#define OCTAVE_GLPK_GET_INT_PARAM (   NAME,
  VAL 
)
Value:
do \
{ \
octave_value tmp = PARAM.getfield (NAME); \
if (tmp.is_defined ()) \
{ \
if (! tmp.is_empty ()) \
{ \
VAL = tmp.int_value (); \
{ \
error ("glpk: invalid value in PARAM." NAME); \
return retval; \
} \
} \
else \
{ \
error ("glpk: invalid value in PARAM." NAME); \
return retval; \
} \
} \
} \
while (0)

Definition at line 328 of file __glpk__.cc.

Referenced by DEFUN_DLD().

#define OCTAVE_GLPK_GET_REAL_PARAM (   NAME,
  VAL 
)
Value:
do \
{ \
octave_value tmp = PARAM.getfield (NAME); \
if (tmp.is_defined ()) \
{ \
if (! tmp.is_empty ()) \
{ \
VAL = tmp.scalar_value (); \
{ \
error ("glpk: invalid value in PARAM." NAME); \
return retval; \
} \
} \
else \
{ \
error ("glpk: invalid value in PARAM." NAME); \
return retval; \
} \
} \
} \
while (0)

Definition at line 302 of file __glpk__.cc.

Referenced by DEFUN_DLD().

Function Documentation

DEFUN_DLD ( __glpk__  ,
args   
)
int glpk ( int  sense,
int  n,
int  m,
double c,
int  nz,
int rn,
int cn,
double a,
double b,
char ctype,
int freeLB,
double lb,
int freeUB,
double ub,
int vartype,
int  isMIP,
int  lpsolver,
int  save_pb,
int  scale,
const control_params par,
double xmin,
double fmin,
int status,
double lambda,
double redcosts,
double time 
)

Variable Documentation

jmp_buf mark
static

Definition at line 74 of file __glpk__.cc.

Referenced by cntr(), DEFUN_DLD(), drawcn(), glpk(), and mark_facets().