dbl_rawlp.h File Reference

#include "trace.h"
#include "dbl_lpdata.h"
#include "dbl_iqsutil.h"
#include "dbl_format.h"
#include "dbl_lpdefs.h"

Include dependency graph for dbl_rawlp.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  dbl_colptr
struct  dbl_rawlpdata
struct  dbl_sosptr

Defines

#define dbl_ILL_ISBLANK(p)   (((*(p))==' '||(*(p))=='\t'||(*(p))=='\r'||(*(p))=='\f') ? 1 : 0)

Functions

dbl_colptrdbl_ILLcolptralloc (ILLptrworld *p)
int dbl_ILLdata_error (dbl_qserror_collector *collector, const char *format,...)
void dbl_ILLdata_warn (dbl_qserror_collector *collector, const char *format,...)
void dbl_ILLfree_rawlpdata (dbl_rawlpdata *lp)
void dbl_ILLinit_rawlpdata (dbl_rawlpdata *lp, dbl_qserror_collector *collector)
void dbl_ILLprint_rawlpdata (dbl_rawlpdata *lp)
int dbl_ILLraw_add_col (dbl_rawlpdata *lp, const char *name, int intmarker)
int dbl_ILLraw_add_col_coef (dbl_rawlpdata *lp, int colind, int rowind, double coef)
int dbl_ILLraw_add_ranges_coef (dbl_rawlpdata *lp, int rowind, double coef)
int dbl_ILLraw_add_row (dbl_rawlpdata *lp, const char *name, int sense, const double rhs)
int dbl_ILLraw_add_sos (dbl_rawlpdata *lp, int sos_type)
int dbl_ILLraw_add_sos_member (dbl_rawlpdata *lp, int colind)
void dbl_ILLraw_clear_matrix (dbl_rawlpdata *lp)
const char * dbl_ILLraw_colname (dbl_rawlpdata *lp, int i)
int dbl_ILLraw_default_lower (dbl_ILLlpdata *lp, int i)
int dbl_ILLraw_default_upper (dbl_ILLlpdata *lp, int i, int ri)
int dbl_ILLraw_fill_in_bounds (dbl_rawlpdata *lp)
int dbl_ILLraw_fill_in_rownames (dbl_rawlpdata *lp)
int dbl_ILLraw_first_nondefault_bound (dbl_ILLlpdata *lp)
int dbl_ILLraw_init_bounds (dbl_rawlpdata *lp)
int dbl_ILLraw_init_ranges (dbl_rawlpdata *lp)
int dbl_ILLraw_init_rhs (dbl_rawlpdata *lp)
int dbl_ILLraw_is_mem_other_sos (dbl_rawlpdata *lp, int colind)
const char * dbl_ILLraw_rowname (dbl_rawlpdata *lp, int i)
const char * dbl_ILLraw_set_binaryBound (dbl_rawlpdata *lp, int i)
int dbl_ILLraw_set_bounds_name (dbl_rawlpdata *lp, const char *name, int *skip)
const char * dbl_ILLraw_set_fixedBound (dbl_rawlpdata *lp, int i, double bnd)
const char * dbl_ILLraw_set_lowerBound (dbl_rawlpdata *lp, int i, double bnd)
int dbl_ILLraw_set_ranges_name (dbl_rawlpdata *lp, const char *name, int *skip)
int dbl_ILLraw_set_rhs_name (dbl_rawlpdata *lp, const char *name, int *skip)
const char * dbl_ILLraw_set_unbound (dbl_rawlpdata *lp, int colind)
const char * dbl_ILLraw_set_upperBound (dbl_rawlpdata *lp, int i, double bnd)
char * dbl_ILLraw_unique_name (ILLsymboltab *tab, char *prefix, int i)
int dbl_ILLrawlpdata_to_lpdata (dbl_rawlpdata *raw, dbl_ILLlpdata *lp)

Variables

const int dbl_ILL_SOS_TYPE1
const int dbl_ILL_SOS_TYPE2


Define Documentation

#define dbl_ILL_ISBLANK (  )     (((*(p))==' '||(*(p))=='\t'||(*(p))=='\r'||(*(p))=='\f') ? 1 : 0)

Definition at line 40 of file dbl_rawlp.h.


Function Documentation

dbl_colptr* dbl_ILLcolptralloc ( ILLptrworld p  ) 

Definition at line 1753 of file dbl_rawlp.c.

References dbl_colptr::coef.

int dbl_ILLdata_error ( dbl_qserror_collector collector,
const char *  format,
  ... 
)

Definition at line 1731 of file dbl_rawlp.c.

References dbl_ILLmsg(), and dbl_TRUE.

Here is the call graph for this function:

void dbl_ILLdata_warn ( dbl_qserror_collector collector,
const char *  format,
  ... 
)

Definition at line 1742 of file dbl_rawlp.c.

References dbl_FALSE, and dbl_ILLmsg().

Here is the call graph for this function:

void dbl_ILLfree_rawlpdata ( dbl_rawlpdata lp  ) 

Definition at line 144 of file dbl_rawlp.c.

References dbl_rawlpdata::boundsname, dbl_colptr::coef, dbl_rawlpdata::cols, dbl_rawlpdata::coltab, dbl_ILLinit_rawlpdata(), dbl_ILLraw_clear_matrix(), ILL_IFFREE, ILLptrworld_delete(), ILLsymboltab_free(), dbl_rawlpdata::intmarker, dbl_rawlpdata::is_sos_member, dbl_rawlpdata::lbind, dbl_rawlpdata::lower, dbl_rawlpdata::name, dbl_colptr::next, NULL, dbl_rawlpdata::ptrworld, dbl_rawlpdata::ranges, dbl_rawlpdata::rangesind, dbl_rawlpdata::rangesname, dbl_rawlpdata::refrow, dbl_rawlpdata::rhs, dbl_rawlpdata::rhsind, dbl_rawlpdata::rhsname, dbl_rawlpdata::rowsense, dbl_rawlpdata::rowtab, dbl_rawlpdata::sos_col, dbl_rawlpdata::sos_set, dbl_rawlpdata::sos_weight, dbl_rawlpdata::ubind, and dbl_rawlpdata::upper.

Here is the call graph for this function:

void dbl_ILLinit_rawlpdata ( dbl_rawlpdata lp,
dbl_qserror_collector collector 
)

Definition at line 70 of file dbl_rawlp.c.

References dbl_rawlpdata::boundsname, dbl_rawlpdata::cols, dbl_rawlpdata::colsize, dbl_rawlpdata::coltab, dbl_ILL_MIN, dbl_rawlpdata::error_collector, ILLptrworld_init(), ILLsymboltab_init(), dbl_rawlpdata::intmarker, dbl_rawlpdata::intsize, dbl_rawlpdata::is_sos_member, dbl_rawlpdata::is_sos_size, dbl_rawlpdata::lbind, dbl_rawlpdata::lower, dbl_rawlpdata::name, dbl_rawlpdata::ncols, dbl_rawlpdata::nrows, dbl_rawlpdata::nsos, dbl_rawlpdata::nsos_member, NULL, dbl_rawlpdata::objindex, dbl_rawlpdata::objsense, dbl_rawlpdata::ptrworld, dbl_rawlpdata::ranges, dbl_rawlpdata::rangesind, dbl_rawlpdata::rangesname, dbl_rawlpdata::refrow, dbl_rawlpdata::refrowind, dbl_rawlpdata::rhs, dbl_rawlpdata::rhsind, dbl_rawlpdata::rhsname, dbl_rawlpdata::rhssize, dbl_rawlpdata::rowsense, dbl_rawlpdata::rowtab, dbl_rawlpdata::sensesize, dbl_rawlpdata::sos_col, dbl_rawlpdata::sos_col_size, dbl_rawlpdata::sos_set, dbl_rawlpdata::sos_setsize, dbl_rawlpdata::sos_weight, dbl_rawlpdata::sos_weight_size, dbl_rawlpdata::ubind, and dbl_rawlpdata::upper.

Here is the call graph for this function:

void dbl_ILLprint_rawlpdata ( dbl_rawlpdata lp  ) 

Definition at line 1561 of file dbl_rawlp.c.

References dbl_colptr::coef, dbl_rawlpdata::cols, dbl_ILLraw_colname(), dbl_ILLraw_rowname(), dbl_rawlpdata::name, dbl_rawlpdata::ncols, dbl_colptr::next, dbl_rawlpdata::nrows, dbl_rawlpdata::rhs, dbl_rawlpdata::rowsense, and dbl_colptr::this_val.

Here is the call graph for this function:

int dbl_ILLraw_add_col ( dbl_rawlpdata lp,
const char *  name,
int  intmarker 
)

Definition at line 227 of file dbl_rawlp.c.

References dbl_rawlpdata::cols, dbl_rawlpdata::colsize, dbl_rawlpdata::coltab, ILL_CLEANUP_IF, ILL_RETURN, ILLsymboltab_register(), dbl_rawlpdata::intmarker, dbl_rawlpdata::intsize, dbl_rawlpdata::is_sos_member, dbl_rawlpdata::is_sos_size, and dbl_rawlpdata::ncols.

Here is the call graph for this function:

int dbl_ILLraw_add_col_coef ( dbl_rawlpdata lp,
int  colind,
int  rowind,
double  coef 
)

Definition at line 319 of file dbl_rawlp.c.

References dbl_colptr::coef, dbl_rawlpdata::cols, dbl_ILLcolptralloc(), dbl_colptr::next, dbl_rawlpdata::ptrworld, and dbl_colptr::this_val.

Here is the call graph for this function:

int dbl_ILLraw_add_ranges_coef ( dbl_rawlpdata lp,
int  rowind,
double  coef 
)

Definition at line 339 of file dbl_rawlp.c.

References dbl_colptr::coef, dbl_ILLcolptralloc(), dbl_colptr::next, dbl_rawlpdata::ptrworld, dbl_rawlpdata::ranges, dbl_rawlpdata::rangesind, and dbl_colptr::this_val.

Here is the call graph for this function:

int dbl_ILLraw_add_row ( dbl_rawlpdata lp,
const char *  name,
int  sense,
const double  rhs 
)

Definition at line 455 of file dbl_rawlp.c.

References ILL_CLEANUP_IF, ILL_RETURN, ILLsymboltab_register(), dbl_rawlpdata::nrows, dbl_rawlpdata::rhs, dbl_rawlpdata::rhssize, dbl_rawlpdata::rowsense, dbl_rawlpdata::rowtab, and dbl_rawlpdata::sensesize.

Here is the call graph for this function:

int dbl_ILLraw_add_sos ( dbl_rawlpdata lp,
int  sos_type 
)

Definition at line 358 of file dbl_rawlp.c.

References dbl_sosptr::first, ILL_RETURN, dbl_sosptr::nelem, dbl_rawlpdata::nsos, dbl_rawlpdata::sos_set, dbl_rawlpdata::sos_setsize, and dbl_sosptr::type.

int dbl_ILLraw_add_sos_member ( dbl_rawlpdata lp,
int  colind 
)

Definition at line 404 of file dbl_rawlp.c.

References dbl_ILLraw_is_mem_other_sos(), ILL_FAILfalse, ILL_FAILtrue, ILL_RETURN, and dbl_rawlpdata::nsos.

Here is the call graph for this function:

void dbl_ILLraw_clear_matrix ( dbl_rawlpdata lp  ) 

Definition at line 118 of file dbl_rawlp.c.

References dbl_rawlpdata::cols, dbl_rawlpdata::ncols, dbl_colptr::next, NULL, and dbl_rawlpdata::ptrworld.

const char* dbl_ILLraw_colname ( dbl_rawlpdata lp,
int  i 
)

Definition at line 213 of file dbl_rawlp.c.

References dbl_rawlpdata::coltab, ILL_FAILfalse_no_rval, ILLsymboltab_get(), dbl_rawlpdata::ncols, NULL, and ILLsymboltab::tablesize.

Here is the call graph for this function:

int dbl_ILLraw_default_lower ( dbl_ILLlpdata lp,
int  i 
)

Definition at line 786 of file dbl_rawlp.c.

References dbl_ILL_MINDOUBLE, ILL_FAILfalse_no_rval, ILL_FAILtrue_no_rval, dbl_ILLlpdata::lower, dbl_ILLlpdata::ncols, NULL, and dbl_ILLlpdata::upper.

int dbl_ILLraw_default_upper ( dbl_ILLlpdata lp,
int  i,
int  ri 
)

Definition at line 807 of file dbl_rawlp.c.

References dbl_ILL_MAXDOUBLE, ILL_FAILfalse_no_rval, ILL_FAILtrue_no_rval, dbl_ILLlpdata::intmarker, dbl_ILLlpdata::lower, dbl_ILLlpdata::ncols, NULL, and dbl_ILLlpdata::upper.

int dbl_ILLraw_fill_in_bounds ( dbl_rawlpdata lp  ) 

Definition at line 699 of file dbl_rawlp.c.

References dbl_ILL_MINDOUBLE, dbl_ILLraw_init_bounds(), ILL_FAILtrue, dbl_rawlpdata::lbind, dbl_rawlpdata::lower, dbl_rawlpdata::ncols, NULL, dbl_rawlpdata::ubind, and dbl_rawlpdata::upper.

Here is the call graph for this function:

int dbl_ILLraw_fill_in_rownames ( dbl_rawlpdata lp  ) 

Definition at line 834 of file dbl_rawlp.c.

References dbl_ILLdata_warn(), dbl_rawlpdata::error_collector, ILL_CLEANUP_IF, ILL_FAILtrue, ILL_namebufsize, ILL_RESULT, ILLsymboltab_get(), ILLsymboltab_rename(), ILLsymboltab_unique_name(), dbl_rawlpdata::nrows, NULL, dbl_rawlpdata::rowtab, and ILLsymboltab::tablesize.

Here is the call graph for this function:

int dbl_ILLraw_first_nondefault_bound ( dbl_ILLlpdata lp  ) 

Definition at line 769 of file dbl_rawlp.c.

References dbl_ILLraw_default_lower(), dbl_ILLraw_default_upper(), ILL_FAILtrue_no_rval, dbl_ILLlpdata::lower, dbl_ILLlpdata::nstruct, NULL, dbl_ILLlpdata::structmap, and dbl_ILLlpdata::upper.

Here is the call graph for this function:

int dbl_ILLraw_init_bounds ( dbl_rawlpdata lp  ) 

Definition at line 586 of file dbl_rawlp.c.

References ILL_FAILfalse, ILL_RETURN, ILL_SAFE_MALLOC, dbl_rawlpdata::lbind, dbl_rawlpdata::lower, dbl_rawlpdata::ncols, NULL, dbl_rawlpdata::ubind, and dbl_rawlpdata::upper.

int dbl_ILLraw_init_ranges ( dbl_rawlpdata lp  ) 

Definition at line 300 of file dbl_rawlp.c.

References ILL_FAILfalse, ILL_RETURN, ILL_SAFE_MALLOC, dbl_rawlpdata::nrows, NULL, and dbl_rawlpdata::rangesind.

int dbl_ILLraw_init_rhs ( dbl_rawlpdata lp  ) 

Definition at line 281 of file dbl_rawlp.c.

References ILL_FAILfalse, ILL_RETURN, ILL_SAFE_MALLOC, dbl_rawlpdata::nrows, NULL, and dbl_rawlpdata::rhsind.

int dbl_ILLraw_is_mem_other_sos ( dbl_rawlpdata lp,
int  colind 
)

Definition at line 396 of file dbl_rawlp.c.

References dbl_rawlpdata::is_sos_member, and dbl_rawlpdata::nsos.

const char* dbl_ILLraw_rowname ( dbl_rawlpdata lp,
int  i 
)

Definition at line 200 of file dbl_rawlp.c.

References ILL_FAILfalse_no_rval, ILLsymboltab_get(), dbl_rawlpdata::nrows, NULL, dbl_rawlpdata::rowtab, and ILLsymboltab::tablesize.

Here is the call graph for this function:

const char* dbl_ILLraw_set_binaryBound ( dbl_rawlpdata lp,
int  i 
)

Definition at line 682 of file dbl_rawlp.c.

References ILL_FAILtrue_no_rval, dbl_rawlpdata::lbind, dbl_rawlpdata::lower, dbl_rawlpdata::ncols, NULL, dbl_rawlpdata::ubind, and dbl_rawlpdata::upper.

int dbl_ILLraw_set_bounds_name ( dbl_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1545 of file dbl_rawlp.c.

References dbl_rawlpdata::boundsname, and dbl_set_field_name().

Here is the call graph for this function:

const char* dbl_ILLraw_set_fixedBound ( dbl_rawlpdata lp,
int  i,
double  bnd 
)

Definition at line 647 of file dbl_rawlp.c.

References ILL_FAILtrue_no_rval, dbl_rawlpdata::lbind, dbl_rawlpdata::lower, dbl_rawlpdata::ncols, NULL, dbl_rawlpdata::ubind, and dbl_rawlpdata::upper.

const char* dbl_ILLraw_set_lowerBound ( dbl_rawlpdata lp,
int  i,
double  bnd 
)

Definition at line 610 of file dbl_rawlp.c.

References ILL_FAILtrue_no_rval, dbl_rawlpdata::lbind, dbl_rawlpdata::lower, dbl_rawlpdata::ncols, and NULL.

int dbl_ILLraw_set_ranges_name ( dbl_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1553 of file dbl_rawlp.c.

References dbl_set_field_name(), and dbl_rawlpdata::rangesname.

Here is the call graph for this function:

int dbl_ILLraw_set_rhs_name ( dbl_rawlpdata lp,
const char *  name,
int *  skip 
)

Definition at line 1537 of file dbl_rawlp.c.

References dbl_set_field_name(), and dbl_rawlpdata::rhsname.

Here is the call graph for this function:

const char* dbl_ILLraw_set_unbound ( dbl_rawlpdata lp,
int  colind 
)

Definition at line 665 of file dbl_rawlp.c.

References dbl_ILL_MAXDOUBLE, dbl_ILL_MINDOUBLE, ILL_FAILtrue_no_rval, dbl_rawlpdata::lbind, dbl_rawlpdata::lower, dbl_rawlpdata::ncols, NULL, dbl_rawlpdata::ubind, and dbl_rawlpdata::upper.

const char* dbl_ILLraw_set_upperBound ( dbl_rawlpdata lp,
int  i,
double  bnd 
)

Definition at line 626 of file dbl_rawlp.c.

References ILL_FAILtrue_no_rval, dbl_rawlpdata::lower, dbl_rawlpdata::ncols, NULL, dbl_rawlpdata::ubind, and dbl_rawlpdata::upper.

char* dbl_ILLraw_unique_name ( ILLsymboltab tab,
char *  prefix,
int  i 
)

int dbl_ILLrawlpdata_to_lpdata ( dbl_rawlpdata raw,
dbl_ILLlpdata lp 
)

Definition at line 1495 of file dbl_rawlp.c.

References dbl_convert_rawlpdata_to_lpdata(), dbl_ILLlp_add_logicals(), dbl_ILLprint_rawlpdata(), ILL_IFDOTRACE, and ILL_RESULT.

Here is the call graph for this function:


Variable Documentation

const int dbl_ILL_SOS_TYPE1

const int dbl_ILL_SOS_TYPE2


Generated on Thu Mar 29 09:34:35 2012 for QSopt_ex by  doxygen 1.4.7