fp20_lpdata.c File Reference

#include "qs_config.h"
#include "fp20_iqsutil.h"
#include "fp20_lpdata.h"
#include "fp20_qstruct.h"
#include "fp20_qsopt.h"
#include "fp20_lp.h"
#include "fp20_mps.h"
#include "fp20_rawlp.h"

Include dependency graph for fp20_lpdata.c:

Go to the source code of this file.

Functions

void fp20_ILLchange_precision (void)
void fp20_ILLend (void)
int fp20_ILLlp_basis_alloc (fp20_ILLlp_basis *B, int nstruct, int nrows)
void fp20_ILLlp_basis_free (fp20_ILLlp_basis *B)
void fp20_ILLlp_basis_init (fp20_ILLlp_basis *B)
int fp20_ILLlp_cache_alloc (fp20_ILLlp_cache *C, int nstruct, int nrows)
void fp20_ILLlp_cache_free (fp20_ILLlp_cache *C)
void fp20_ILLlp_cache_init (fp20_ILLlp_cache *C)
void fp20_ILLlp_rows_clear (fp20_ILLlp_rows *lprows)
int fp20_ILLlp_rows_init (fp20_ILLlp_rows *lprows, fp20_ILLlpdata *lp, int include_logicals)
void fp20_ILLlpdata_free (fp20_ILLlpdata *lp)
void fp20_ILLlpdata_init (fp20_ILLlpdata *lp)
int fp20_ILLprint_report (fp20_ILLlpdata *lp, const char *format,...)
fp20_QSdatafp20_ILLread (fp20_qsline_reader *file, const char *fp20_fname, int isMps)
void fp20_ILLstart (void)
static int fp20_wr_line (fp20_ILLlpdata *lp, const char *format, va_list argptr)

Variables

int fp20___QSEX_SETUP = 0
EGfp20_t fp20_ALTPIV_TOLER
EGfp20_t fp20_BD_TOLER
EGfp20_t fp20_CB_EPS
EGfp20_t fp20_CB_INF_RATIO
EGfp20_t fp20_CB_PRI_RLIMIT
EGfp20_t fp20_DBNDPIV_RATIO
EGfp20_t fp20_DBNDPIV_TOLER
EGfp20_t fp20_DFEAS_TOLER
EGfp20_t fp20_ILL_MAXDOUBLE
EGfp20_t fp20_ILL_MINDOUBLE
EGfp20_t fp20_OBJBND_TOLER
EGfp20_t fp20_PARAM_IBASIS_RPIVOT
EGfp20_t fp20_PARAM_IBASIS_RTRIANG
EGfp20_t fp20_PARAM_MIN_DNORM
EGfp20_t fp20_PFEAS_TOLER
EGfp20_t fp20_PIVOT_TOLER
EGfp20_t fp20_PIVZ_TOLER
EGfp20_t fp20_PROGRESS_THRESH
EGfp20_t fp20_PROGRESS_ZERO
EGfp20_t fp20_SZERO_TOLER


Function Documentation

void fp20_ILLchange_precision ( void   ) 

This function re-compute the internal

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

Definition at line 178 of file fp20_lpdata.c.

References fp20_ALTPIV_TOLER, fp20_BD_TOLER, fp20_DFEAS_TOLER, fp20_OBJBND_TOLER, fp20_PARAM_MIN_DNORM, fp20_PFEAS_TOLER, fp20_PIVOT_TOLER, fp20_PIVZ_TOLER, fp20_PROGRESS_THRESH, fp20_PROGRESS_ZERO, and fp20_SZERO_TOLER.

void fp20_ILLend ( void   ) 

free any internal data asociated with variable

fp20_precision numbers

Definition at line 229 of file fp20_lpdata.c.

References fp20___QSEX_SETUP, fp20_ALTPIV_TOLER, fp20_BD_TOLER, fp20_CB_EPS, fp20_CB_INF_RATIO, fp20_CB_PRI_RLIMIT, fp20_DBNDPIV_RATIO, fp20_DBNDPIV_TOLER, fp20_DFEAS_TOLER, fp20_ILL_MAXDOUBLE, fp20_ILL_MINDOUBLE, fp20_OBJBND_TOLER, fp20_PARAM_IBASIS_RPIVOT, fp20_PARAM_IBASIS_RTRIANG, fp20_PARAM_MIN_DNORM, fp20_PFEAS_TOLER, fp20_PIVOT_TOLER, fp20_PIVZ_TOLER, fp20_PROGRESS_THRESH, fp20_PROGRESS_ZERO, and fp20_SZERO_TOLER.

int fp20_ILLlp_basis_alloc ( fp20_ILLlp_basis B,
int  nstruct,
int  nrows 
)

Definition at line 433 of file fp20_lpdata.c.

References fp20_ILLlp_basis::cstat, fp20_ILLlp_basis_free(), ILL_FAILtrue, ILL_SAFE_MALLOC, fp20_ILLlp_basis::nrows, fp20_ILLlp_basis::nstruct, NULL, and fp20_ILLlp_basis::rstat.

Here is the call graph for this function:

void fp20_ILLlp_basis_free ( fp20_ILLlp_basis B  ) 

Definition at line 418 of file fp20_lpdata.c.

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

void fp20_ILLlp_basis_init ( fp20_ILLlp_basis B  ) 

Definition at line 404 of file fp20_lpdata.c.

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

int fp20_ILLlp_cache_alloc ( fp20_ILLlp_cache C,
int  nstruct,
int  nrows 
)

Definition at line 496 of file fp20_lpdata.c.

References fp20_ILLlp_cache_free(), ILL_FAILtrue, fp20_ILLlp_cache::nrows, fp20_ILLlp_cache::nstruct, NULL, fp20_ILLlp_cache::pi, fp20_ILLlp_cache::rc, fp20_ILLlp_cache::slack, and fp20_ILLlp_cache::x.

Here is the call graph for this function:

void fp20_ILLlp_cache_free ( fp20_ILLlp_cache C  ) 

Definition at line 481 of file fp20_lpdata.c.

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

void fp20_ILLlp_cache_init ( fp20_ILLlp_cache C  ) 

Definition at line 465 of file fp20_lpdata.c.

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

void fp20_ILLlp_rows_clear ( fp20_ILLlp_rows lprows  ) 

Definition at line 674 of file fp20_lpdata.c.

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

int fp20_ILLlp_rows_init ( fp20_ILLlp_rows lprows,
fp20_ILLlpdata lp,
int  include_logicals 
)

Definition at line 531 of file fp20_lpdata.c.

References fp20_ILLlpdata::A, fp20_ILLlp_rows_clear(), ILL_FAILfalse, ILL_FAILtrue, ILL_IFFREE, ILL_SAFE_MALLOC, fp20_ILLmatrix::matbeg, fp20_ILLmatrix::matcnt, fp20_ILLmatrix::matind, fp20_ILLmatrix::matval, fp20_ILLlpdata::ncols, fp20_ILLlpdata::nrows, fp20_ILLlpdata::nstruct, NULL, fp20_ILLlpdata::nzcount, fp20_ILLlp_rows::rowbeg, fp20_ILLlp_rows::rowcnt, fp20_ILLlp_rows::rowind, fp20_ILLlpdata::rowmap, fp20_ILLlp_rows::rowval, and fp20_ILLlpdata::structmap.

Here is the call graph for this function:

void fp20_ILLlpdata_free ( fp20_ILLlpdata lp  ) 

Definition at line 347 of file fp20_lpdata.c.

References fp20_ILLlpdata::A, fp20_ILLlpdata::colnames, fp20_ILLlpdata::coltab, fp20_ILLlp_rows_clear(), fp20_ILLlp_sinfo_free(), fp20_ILLlpdata_init(), fp20_ILLmatrix_free(), ILL_IFFREE, ILLsymboltab_free(), fp20_ILLlpdata::intmarker, fp20_ILLlpdata::is_sos_mem, fp20_ILLlpdata::lower, fp20_ILLlpdata::nrows, fp20_ILLlpdata::nstruct, fp20_ILLlpdata::obj, fp20_ILLlpdata::objname, fp20_ILLlpdata::probname, fp20_ILLlpdata::rA, fp20_ILLlpdata::rangeval, fp20_ILLlpdata::refrowname, fp20_ILLlpdata::rhs, fp20_ILLlpdata::rowmap, fp20_ILLlpdata::rownames, fp20_ILLlpdata::rowtab, fp20_ILLlpdata::sense, fp20_ILLlpdata::sinfo, fp20_ILLlpdata::sos, fp20_ILLlpdata::structmap, and fp20_ILLlpdata::upper.

Here is the call graph for this function:

void fp20_ILLlpdata_init ( fp20_ILLlpdata lp  ) 

Definition at line 302 of file fp20_lpdata.c.

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

Here is the call graph for this function:

int fp20_ILLprint_report ( fp20_ILLlpdata lp,
const char *  format,
  ... 
)

Definition at line 712 of file fp20_lpdata.c.

References fp20_wr_line().

Here is the call graph for this function:

fp20_QSdata* fp20_ILLread ( fp20_qsline_reader file,
const char *  fp20_fname,
int  isMps 
)

Definition at line 257 of file fp20_lpdata.c.

References fp20_qsline_reader::error_collector, fp20_ILLfree_rawlpdata(), fp20_ILLinit_rawlpdata(), fp20_ILLlpdata_init(), fp20_ILLrawlpdata_to_lpdata(), fp20_ILLread_lp(), fp20_ILLread_mps(), fp20_QScreate_prob(), fp20_QSfree_prob(), ILL_CHECKnull, ILL_FAILfalse, ILL_IFFREE, NULL, fp20_ILLlpdata::probname, QS_MIN, and fp20_qsdata::qslp.

Here is the call graph for this function:

void fp20_ILLstart ( void   ) 

initialize fp20_ILL_MAXDOUBLE and other

constants, this funtion should be callef AFTER EGlpNumStart()

Definition at line 102 of file fp20_lpdata.c.

References fp20___QSEX_SETUP, fp20_ALTPIV_TOLER, fp20_BD_TOLER, fp20_CB_EPS, fp20_CB_INF_RATIO, fp20_CB_PRI_RLIMIT, fp20_DBNDPIV_RATIO, fp20_DBNDPIV_TOLER, fp20_DFEAS_TOLER, fp20_ILL_MAXDOUBLE, fp20_ILL_MINDOUBLE, fp20_OBJBND_TOLER, fp20_PARAM_IBASIS_RPIVOT, fp20_PARAM_IBASIS_RTRIANG, fp20_PARAM_MIN_DNORM, fp20_PFEAS_TOLER, fp20_PIVOT_TOLER, fp20_PIVZ_TOLER, fp20_PROGRESS_THRESH, fp20_PROGRESS_ZERO, fp20_SZERO_TOLER, and VERBOSE_LEVEL.

static int fp20_wr_line ( fp20_ILLlpdata lp,
const char *  format,
va_list  argptr 
) [static]

Definition at line 687 of file fp20_lpdata.c.

References ILL_namebufsize, ILLstring_report, and fp20_ILLlpdata::reporter.

Referenced by fp20_ILLprint_report().


Variable Documentation

int fp20___QSEX_SETUP = 0

Definition at line 100 of file fp20_lpdata.c.

EGfp20_t fp20_ALTPIV_TOLER

Definition at line 89 of file fp20_lpdata.c.

EGfp20_t fp20_BD_TOLER

Definition at line 81 of file fp20_lpdata.c.

EGfp20_t fp20_CB_EPS

Definition at line 93 of file fp20_lpdata.c.

EGfp20_t fp20_CB_INF_RATIO

Definition at line 94 of file fp20_lpdata.c.

EGfp20_t fp20_CB_PRI_RLIMIT

Definition at line 95 of file fp20_lpdata.c.

EGfp20_t fp20_DBNDPIV_RATIO

Definition at line 88 of file fp20_lpdata.c.

EGfp20_t fp20_DBNDPIV_TOLER

Definition at line 87 of file fp20_lpdata.c.

EGfp20_t fp20_DFEAS_TOLER

Definition at line 82 of file fp20_lpdata.c.

EGfp20_t fp20_ILL_MAXDOUBLE

Definition at line 96 of file fp20_lpdata.c.

EGfp20_t fp20_ILL_MINDOUBLE

Definition at line 97 of file fp20_lpdata.c.

EGfp20_t fp20_OBJBND_TOLER

Definition at line 86 of file fp20_lpdata.c.

EGfp20_t fp20_PARAM_IBASIS_RPIVOT

Definition at line 77 of file fp20_lpdata.c.

EGfp20_t fp20_PARAM_IBASIS_RTRIANG

Definition at line 78 of file fp20_lpdata.c.

EGfp20_t fp20_PARAM_MIN_DNORM

Definition at line 79 of file fp20_lpdata.c.

EGfp20_t fp20_PFEAS_TOLER

Definition at line 80 of file fp20_lpdata.c.

EGfp20_t fp20_PIVOT_TOLER

Definition at line 83 of file fp20_lpdata.c.

EGfp20_t fp20_PIVZ_TOLER

Definition at line 85 of file fp20_lpdata.c.

EGfp20_t fp20_PROGRESS_THRESH

Definition at line 92 of file fp20_lpdata.c.

EGfp20_t fp20_PROGRESS_ZERO

Definition at line 91 of file fp20_lpdata.c.

EGfp20_t fp20_SZERO_TOLER

Definition at line 84 of file fp20_lpdata.c.


Generated on Thu Mar 29 09:38:07 2012 for QSopt_ex by  doxygen 1.4.7