dbl_lpdata.c File Reference

#include "qs_config.h"
#include "dbl_iqsutil.h"
#include "dbl_lpdata.h"
#include "dbl_qstruct.h"
#include "dbl_qsopt.h"
#include "dbl_lp.h"
#include "dbl_mps.h"
#include "dbl_rawlp.h"

Include dependency graph for dbl_lpdata.c:

Go to the source code of this file.

Functions

void dbl_ILLchange_precision (void)
void dbl_ILLend (void)
int dbl_ILLlp_basis_alloc (dbl_ILLlp_basis *B, int nstruct, int nrows)
void dbl_ILLlp_basis_free (dbl_ILLlp_basis *B)
void dbl_ILLlp_basis_init (dbl_ILLlp_basis *B)
int dbl_ILLlp_cache_alloc (dbl_ILLlp_cache *C, int nstruct, int nrows)
void dbl_ILLlp_cache_free (dbl_ILLlp_cache *C)
void dbl_ILLlp_cache_init (dbl_ILLlp_cache *C)
void dbl_ILLlp_rows_clear (dbl_ILLlp_rows *lprows)
int dbl_ILLlp_rows_init (dbl_ILLlp_rows *lprows, dbl_ILLlpdata *lp, int include_logicals)
void dbl_ILLlpdata_free (dbl_ILLlpdata *lp)
void dbl_ILLlpdata_init (dbl_ILLlpdata *lp)
int dbl_ILLprint_report (dbl_ILLlpdata *lp, const char *format,...)
dbl_QSdatadbl_ILLread (dbl_qsline_reader *file, const char *dbl_fname, int isMps)
void dbl_ILLstart (void)
static int dbl_wr_line (dbl_ILLlpdata *lp, const char *format, va_list argptr)

Variables

int dbl___QSEX_SETUP = 0
double dbl_ALTPIV_TOLER
double dbl_BD_TOLER
double dbl_CB_EPS
double dbl_CB_INF_RATIO
double dbl_CB_PRI_RLIMIT
double dbl_DBNDPIV_RATIO
double dbl_DBNDPIV_TOLER
double dbl_DFEAS_TOLER
double dbl_ILL_MAXDOUBLE
double dbl_ILL_MINDOUBLE
double dbl_OBJBND_TOLER
double dbl_PARAM_IBASIS_RPIVOT
double dbl_PARAM_IBASIS_RTRIANG
double dbl_PARAM_MIN_DNORM
double dbl_PFEAS_TOLER
double dbl_PIVOT_TOLER
double dbl_PIVZ_TOLER
double dbl_PROGRESS_THRESH
double dbl_PROGRESS_ZERO
double dbl_SZERO_TOLER


Function Documentation

void dbl_ILLchange_precision ( void   ) 

This function re-compute the internal

variables dbl_precision to the (previously set) EGLPNUM_PRECISION value (done with EGlpNumSetPrecision)

Definition at line 178 of file dbl_lpdata.c.

References dbl_ALTPIV_TOLER, dbl_BD_TOLER, dbl_DFEAS_TOLER, dbl_OBJBND_TOLER, dbl_PARAM_MIN_DNORM, dbl_PFEAS_TOLER, dbl_PIVOT_TOLER, dbl_PIVZ_TOLER, dbl_PROGRESS_THRESH, dbl_PROGRESS_ZERO, and dbl_SZERO_TOLER.

void dbl_ILLend ( void   ) 

free any internal data asociated with variable

dbl_precision numbers

Definition at line 229 of file dbl_lpdata.c.

References dbl___QSEX_SETUP, dbl_ALTPIV_TOLER, dbl_BD_TOLER, dbl_CB_EPS, dbl_CB_INF_RATIO, dbl_CB_PRI_RLIMIT, dbl_DBNDPIV_RATIO, dbl_DBNDPIV_TOLER, dbl_DFEAS_TOLER, dbl_ILL_MAXDOUBLE, dbl_ILL_MINDOUBLE, dbl_OBJBND_TOLER, dbl_PARAM_IBASIS_RPIVOT, dbl_PARAM_IBASIS_RTRIANG, dbl_PARAM_MIN_DNORM, dbl_PFEAS_TOLER, dbl_PIVOT_TOLER, dbl_PIVZ_TOLER, dbl_PROGRESS_THRESH, dbl_PROGRESS_ZERO, and dbl_SZERO_TOLER.

int dbl_ILLlp_basis_alloc ( dbl_ILLlp_basis B,
int  nstruct,
int  nrows 
)

Definition at line 433 of file dbl_lpdata.c.

References dbl_ILLlp_basis::cstat, dbl_ILLlp_basis_free(), ILL_FAILtrue, ILL_SAFE_MALLOC, dbl_ILLlp_basis::nrows, dbl_ILLlp_basis::nstruct, NULL, and dbl_ILLlp_basis::rstat.

Here is the call graph for this function:

void dbl_ILLlp_basis_free ( dbl_ILLlp_basis B  ) 

Definition at line 418 of file dbl_lpdata.c.

References dbl_ILLlp_basis::colnorms, dbl_ILLlp_basis::cstat, ILL_IFFREE, dbl_ILLlp_basis::nrows, dbl_ILLlp_basis::nstruct, dbl_ILLlp_basis::rownorms, and dbl_ILLlp_basis::rstat.

void dbl_ILLlp_basis_init ( dbl_ILLlp_basis B  ) 

Definition at line 404 of file dbl_lpdata.c.

References dbl_ILLlp_basis::colnorms, dbl_ILLlp_basis::cstat, dbl_ILLlp_basis::nrows, dbl_ILLlp_basis::nstruct, dbl_ILLlp_basis::rownorms, and dbl_ILLlp_basis::rstat.

int dbl_ILLlp_cache_alloc ( dbl_ILLlp_cache C,
int  nstruct,
int  nrows 
)

Definition at line 496 of file dbl_lpdata.c.

References dbl_ILLlp_cache_free(), ILL_FAILtrue, dbl_ILLlp_cache::nrows, dbl_ILLlp_cache::nstruct, NULL, dbl_ILLlp_cache::pi, dbl_ILLlp_cache::rc, dbl_ILLlp_cache::slack, and dbl_ILLlp_cache::x.

Here is the call graph for this function:

void dbl_ILLlp_cache_free ( dbl_ILLlp_cache C  ) 

Definition at line 481 of file dbl_lpdata.c.

References dbl_ILLlp_cache::nrows, dbl_ILLlp_cache::nstruct, dbl_ILLlp_cache::pi, dbl_ILLlp_cache::rc, dbl_ILLlp_cache::slack, dbl_ILLlp_cache::status, and dbl_ILLlp_cache::x.

void dbl_ILLlp_cache_init ( dbl_ILLlp_cache C  ) 

Definition at line 465 of file dbl_lpdata.c.

References dbl_ILLlp_cache::nrows, dbl_ILLlp_cache::nstruct, dbl_ILLlp_cache::pi, dbl_ILLlp_cache::rc, dbl_ILLlp_cache::slack, dbl_ILLlp_cache::status, dbl_ILLlp_cache::val, and dbl_ILLlp_cache::x.

void dbl_ILLlp_rows_clear ( dbl_ILLlp_rows lprows  ) 

Definition at line 674 of file dbl_lpdata.c.

References ILL_IFFREE, NULL, dbl_ILLlp_rows::rowbeg, dbl_ILLlp_rows::rowcnt, dbl_ILLlp_rows::rowind, and dbl_ILLlp_rows::rowval.

int dbl_ILLlp_rows_init ( dbl_ILLlp_rows lprows,
dbl_ILLlpdata lp,
int  include_logicals 
)

Definition at line 531 of file dbl_lpdata.c.

References dbl_ILLlpdata::A, dbl_ILLlp_rows_clear(), ILL_FAILfalse, ILL_FAILtrue, ILL_IFFREE, ILL_SAFE_MALLOC, dbl_ILLmatrix::matbeg, dbl_ILLmatrix::matcnt, dbl_ILLmatrix::matind, dbl_ILLmatrix::matval, dbl_ILLlpdata::ncols, dbl_ILLlpdata::nrows, dbl_ILLlpdata::nstruct, NULL, dbl_ILLlpdata::nzcount, dbl_ILLlp_rows::rowbeg, dbl_ILLlp_rows::rowcnt, dbl_ILLlp_rows::rowind, dbl_ILLlpdata::rowmap, dbl_ILLlp_rows::rowval, and dbl_ILLlpdata::structmap.

Here is the call graph for this function:

void dbl_ILLlpdata_free ( dbl_ILLlpdata lp  ) 

Definition at line 347 of file dbl_lpdata.c.

References dbl_ILLlpdata::A, dbl_ILLlpdata::colnames, dbl_ILLlpdata::coltab, dbl_ILLlp_rows_clear(), dbl_ILLlp_sinfo_free(), dbl_ILLlpdata_init(), dbl_ILLmatrix_free(), ILL_IFFREE, ILLsymboltab_free(), dbl_ILLlpdata::intmarker, dbl_ILLlpdata::is_sos_mem, dbl_ILLlpdata::lower, dbl_ILLlpdata::nrows, dbl_ILLlpdata::nstruct, dbl_ILLlpdata::obj, dbl_ILLlpdata::objname, dbl_ILLlpdata::probname, dbl_ILLlpdata::rA, dbl_ILLlpdata::rangeval, dbl_ILLlpdata::refrowname, dbl_ILLlpdata::rhs, dbl_ILLlpdata::rowmap, dbl_ILLlpdata::rownames, dbl_ILLlpdata::rowtab, dbl_ILLlpdata::sense, dbl_ILLlpdata::sinfo, dbl_ILLlpdata::sos, dbl_ILLlpdata::structmap, and dbl_ILLlpdata::upper.

Here is the call graph for this function:

void dbl_ILLlpdata_init ( dbl_ILLlpdata lp  ) 

Definition at line 302 of file dbl_lpdata.c.

References dbl_ILLlpdata::A, dbl_ILLlpdata::basis, dbl_ILLlpdata::colnames, dbl_ILLlpdata::colsize, dbl_ILLlpdata::coltab, dbl_ILL_MIN, dbl_ILLmatrix_init(), ILL_fprintf(), ILLstring_reporter_init(), ILLsymboltab_init(), dbl_ILLlpdata::intmarker, dbl_ILLlpdata::is_sos_mem, dbl_ILLlpdata::lower, dbl_ILLlpdata::ncols, dbl_ILLlpdata::nrows, dbl_ILLlpdata::nstruct, NULL, dbl_ILLlpdata::nzcount, dbl_ILLlpdata::obj, dbl_ILLlpdata::objname, dbl_ILLlpdata::objsense, dbl_ILLlpdata::probname, dbl_ILLlpdata::rA, dbl_ILLlpdata::rangeval, dbl_ILLlpdata::refind, dbl_ILLlpdata::refrowname, dbl_ILLlpdata::reporter, dbl_ILLlpdata::rhs, dbl_ILLlpdata::rowmap, dbl_ILLlpdata::rownames, dbl_ILLlpdata::rowsize, dbl_ILLlpdata::rowtab, dbl_ILLlpdata::sense, dbl_ILLlpdata::sinfo, dbl_ILLlpdata::sos, dbl_ILLlpdata::structmap, dbl_ILLlpdata::structsize, and dbl_ILLlpdata::upper.

Here is the call graph for this function:

int dbl_ILLprint_report ( dbl_ILLlpdata lp,
const char *  format,
  ... 
)

Definition at line 712 of file dbl_lpdata.c.

References dbl_wr_line().

Here is the call graph for this function:

dbl_QSdata* dbl_ILLread ( dbl_qsline_reader file,
const char *  dbl_fname,
int  isMps 
)

Definition at line 257 of file dbl_lpdata.c.

References dbl_ILLfree_rawlpdata(), dbl_ILLinit_rawlpdata(), dbl_ILLlpdata_init(), dbl_ILLrawlpdata_to_lpdata(), dbl_ILLread_lp(), dbl_ILLread_mps(), dbl_QScreate_prob(), dbl_QSfree_prob(), dbl_qsline_reader::error_collector, ILL_CHECKnull, ILL_FAILfalse, ILL_IFFREE, NULL, dbl_ILLlpdata::probname, QS_MIN, and dbl_qsdata::qslp.

Here is the call graph for this function:

void dbl_ILLstart ( void   ) 

initialize dbl_ILL_MAXDOUBLE and other

constants, this funtion should be callef AFTER EGlpNumStart()

Definition at line 102 of file dbl_lpdata.c.

References dbl___QSEX_SETUP, dbl_ALTPIV_TOLER, dbl_BD_TOLER, dbl_CB_EPS, dbl_CB_INF_RATIO, dbl_CB_PRI_RLIMIT, dbl_DBNDPIV_RATIO, dbl_DBNDPIV_TOLER, dbl_DFEAS_TOLER, dbl_ILL_MAXDOUBLE, dbl_ILL_MINDOUBLE, dbl_OBJBND_TOLER, dbl_PARAM_IBASIS_RPIVOT, dbl_PARAM_IBASIS_RTRIANG, dbl_PARAM_MIN_DNORM, dbl_PFEAS_TOLER, dbl_PIVOT_TOLER, dbl_PIVZ_TOLER, dbl_PROGRESS_THRESH, dbl_PROGRESS_ZERO, dbl_SZERO_TOLER, and VERBOSE_LEVEL.

static int dbl_wr_line ( dbl_ILLlpdata lp,
const char *  format,
va_list  argptr 
) [static]

Definition at line 687 of file dbl_lpdata.c.

References ILL_namebufsize, ILLstring_report, and dbl_ILLlpdata::reporter.

Referenced by dbl_ILLprint_report().


Variable Documentation

int dbl___QSEX_SETUP = 0

Definition at line 100 of file dbl_lpdata.c.

double dbl_ALTPIV_TOLER

Definition at line 89 of file dbl_lpdata.c.

double dbl_BD_TOLER

Definition at line 81 of file dbl_lpdata.c.

double dbl_CB_EPS

Definition at line 93 of file dbl_lpdata.c.

double dbl_CB_INF_RATIO

Definition at line 94 of file dbl_lpdata.c.

double dbl_CB_PRI_RLIMIT

Definition at line 95 of file dbl_lpdata.c.

double dbl_DBNDPIV_RATIO

Definition at line 88 of file dbl_lpdata.c.

double dbl_DBNDPIV_TOLER

Definition at line 87 of file dbl_lpdata.c.

double dbl_DFEAS_TOLER

Definition at line 82 of file dbl_lpdata.c.

double dbl_ILL_MAXDOUBLE

Definition at line 96 of file dbl_lpdata.c.

double dbl_ILL_MINDOUBLE

Definition at line 97 of file dbl_lpdata.c.

double dbl_OBJBND_TOLER

Definition at line 86 of file dbl_lpdata.c.

double dbl_PARAM_IBASIS_RPIVOT

Definition at line 77 of file dbl_lpdata.c.

double dbl_PARAM_IBASIS_RTRIANG

Definition at line 78 of file dbl_lpdata.c.

double dbl_PARAM_MIN_DNORM

Definition at line 79 of file dbl_lpdata.c.

double dbl_PFEAS_TOLER

Definition at line 80 of file dbl_lpdata.c.

double dbl_PIVOT_TOLER

Definition at line 83 of file dbl_lpdata.c.

double dbl_PIVZ_TOLER

Definition at line 85 of file dbl_lpdata.c.

double dbl_PROGRESS_THRESH

Definition at line 92 of file dbl_lpdata.c.

double dbl_PROGRESS_ZERO

Definition at line 91 of file dbl_lpdata.c.

double dbl_SZERO_TOLER

Definition at line 84 of file dbl_lpdata.c.


Generated on Thu Mar 29 09:33:45 2012 for QSopt_ex by  doxygen 1.4.7