Defines | Functions

__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 dependency graph for __glpk__.cc:

Go to the source code of this file.

Defines

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

Functions

 DEFUN_DLD (__glpk__, args,,"-*- texinfo -*-\n\ @deftypefn {Loadable Function} {[@var{values}] =} __glpk__ (@var{args})\n\ Undocumented internal function.\n\ @end deftypefn")

Define 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 (); \
 \
              if (error_state) \
                { \
                  error ("glpk: invalid value in PARAM." NAME); \
                  return retval; \
                } \
            } \
          else \
            { \
              error ("glpk: invalid value in PARAM." NAME); \
              return retval; \
            } \
        } \
    } \
  while (0)

Definition at line 444 of file __glpk__.cc.

Referenced by DEFUN_DLD().

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

Definition at line 418 of file __glpk__.cc.

Referenced by DEFUN_DLD().


Function Documentation

DEFUN_DLD ( __glpk__  ,
args   
)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines