GNU Octave  4.2.1
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
__glpk__.cc File Reference
#include <cfloat>
#include <ctime>
#include "lo-ieee.h"
#include "defun-dld.h"
#include "error.h"
#include "errwarn.h"
#include "oct-map.h"
#include "ovl.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

OCTAVE_EXPORT octave_value_list F__glpk__ (const octave_value_list &, int)
 
C OCTAVE_EXPORT octave_functionG__glpk__ (const octave::dynamic_library &shl, bool relative)
 
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)
 

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.xint_value ("glpk: invalid value in PARAM" NAME); \
error ("glpk: invalid value in PARAM" NAME); \
} \
} \
while (0)
while(ischar(s=fgets(fid))) fputs(stdout
void error(const char *fmt,...)
Definition: error.cc:570
Definition: oct-parse.h:94
if(nargin< 2) print_usage()
Definition: cellfun.cc:405
double tmp
Definition: data.cc:6300
return octave_value(v1.char_array_value().concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string())? '\'': '"'))

Definition at line 314 of file __glpk__.cc.

Referenced by G__glpk__().

#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.xscalar_value ("glpk: invalid value in PARAM" NAME); \
error ("glpk: invalid value in PARAM" NAME); \
} \
} \
while (0)
while(ischar(s=fgets(fid))) fputs(stdout
void error(const char *fmt,...)
Definition: error.cc:570
Definition: oct-parse.h:94
if(nargin< 2) print_usage()
Definition: cellfun.cc:405
double tmp
Definition: data.cc:6300
return octave_value(v1.char_array_value().concat(v2.char_array_value(), ra_idx),((a1.is_sq_string()||a2.is_sq_string())? '\'': '"'))

Definition at line 299 of file __glpk__.cc.

Referenced by G__glpk__().

Function Documentation

OCTAVE_EXPORT octave_value_list F__glpk__ ( const octave_value_list args,
int   
)

Definition at line 333 of file __glpk__.cc.

C OCTAVE_EXPORT octave_function* G__glpk__ ( const octave::dynamic_library shl,
bool  relative 
)
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 
)