lib.h File Reference

#include "qs_config.h"
#include "lpdefs.h"
#include "lpdata.h"
#include "price.h"
#include "basicdefs.h"

Include dependency graph for lib.h:

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

Go to the source code of this file.

Functions

int ILLlib_addcol (lpinfo *lp, ILLlp_basis *B, int cnt, int *ind, EGlpNum_t *val, const EGlpNum_t obj, const EGlpNum_t lower, const EGlpNum_t upper, const char *name, int factorok)
int ILLlib_addcols (lpinfo *lp, ILLlp_basis *B, int num, int *cmatcnt, int *cmatbeg, int *cmatind, EGlpNum_t *cmatval, EGlpNum_t *obj, EGlpNum_t *lower, EGlpNum_t *upper, const char **names, int factorok)
int ILLlib_addrow (lpinfo *lp, ILLlp_basis *B, int cnt, int *ind, const EGlpNum_t *val, const EGlpNum_t rhs, int sense, const EGlpNum_t range, const char *rowname)
int ILLlib_addrows (lpinfo *lp, ILLlp_basis *B, int num, int *rmatcnt, int *rmatbeg, int *rmatind, const EGlpNum_t *rmatval, const EGlpNum_t *rhs, char *sense, const EGlpNum_t *range, const char **names, int *nofactor)
int ILLlib_basis_order (lpinfo *lp, int *header)
int ILLlib_cache_solution (lpinfo *lp, ILLlp_cache *C)
int ILLlib_chgbnd (lpinfo *lp, int indx, int lu, const EGlpNum_t bnd)
int ILLlib_chgbnds (lpinfo *lp, int cnt, int *indx, char *lu, const EGlpNum_t *bnd)
int ILLlib_chgcoef (lpinfo *lp, int rowindex, int colindex, EGlpNum_t coef)
int ILLlib_chgobj (lpinfo *lp, int indx, EGlpNum_t coef)
int ILLlib_chgrange (lpinfo *lp, int indx, EGlpNum_t coef)
int ILLlib_chgrhs (lpinfo *lp, int indx, EGlpNum_t coef)
int ILLlib_chgsense (lpinfo *lp, int num, int *rowlist, char *sense)
int ILLlib_colindex (lpinfo *lp, const char *name, int *colindex)
int ILLlib_colnames (lpinfo *lp, char **colnames)
int ILLlib_delcols (lpinfo *lp, ILLlp_basis *B, int num, int *dellist, int *basis_ok)
int ILLlib_delrows (lpinfo *lp, ILLlp_basis *B, ILLlp_cache *C, int num, int *dellist, int *basis_ok, int *cache_ok)
int ILLlib_findName (ILLlpdata *qslp, int forRow, const char *name, int id, char buf[ILL_namebufsize])
int ILLlib_get_slack (lpinfo *lp, ILLlp_cache *C, EGlpNum_t *slack)
int ILLlib_get_x (lpinfo *lp, ILLlp_cache *C, EGlpNum_t *x)
int ILLlib_getbasis (lpinfo *lp, char *cstat, char *rstat)
int ILLlib_getbnd (lpinfo *lp, int indx, int lu, EGlpNum_t *bnd)
int ILLlib_getbnds (lpinfo *lp, EGlpNum_t *lower, EGlpNum_t *upper)
int ILLlib_getbnds_list (lpinfo *lp, int num, int *collist, EGlpNum_t *lower, EGlpNum_t *upper)
int ILLlib_getcoef (lpinfo *lp, int rowindex, int colindex, EGlpNum_t *coef)
int ILLlib_getcols (lpinfo *lp, int num, int *collist, int **colcnt, int **colbeg, int **colind, EGlpNum_t **colval, EGlpNum_t **obj, EGlpNum_t **lower, EGlpNum_t **upper, char ***names)
int ILLlib_getintflags (lpinfo *lp, int *intflags)
int ILLlib_getobj (lpinfo *lp, EGlpNum_t *obj)
int ILLlib_getobj_list (lpinfo *lp, int num, int *collist, EGlpNum_t *obj)
int ILLlib_getrhs (lpinfo *lp, EGlpNum_t *rhs)
int ILLlib_getrownorms (lpinfo *lp, price_info *pinf, EGlpNum_t *rownorms)
int ILLlib_getrows (lpinfo *lp, int num, int *rowlist, int **rowcnt, int **rowbeg, int **rowind, EGlpNum_t **rowval, EGlpNum_t **rhs, char **sense, EGlpNum_t **range, char ***names)
int ILLlib_getsenses (lpinfo *lp, char *senses)
int ILLlib_iter (lpinfo *lp)
int ILLlib_loadbasis (ILLlp_basis *B, int nstruct, int nrows, char *cstat, char *rstat)
int ILLlib_loadrownorms (lpinfo *lp, price_info *pinf, EGlpNum_t *rownorms)
int ILLlib_newcol (lpinfo *lp, ILLlp_basis *B, const EGlpNum_t obj, const EGlpNum_t lower, const EGlpNum_t upper, const char *name, int factorok)
int ILLlib_newcols (lpinfo *lp, ILLlp_basis *B, int num, EGlpNum_t *obj, EGlpNum_t *lower, EGlpNum_t *upper, const char **names, int factorok)
int ILLlib_newrow (lpinfo *lp, ILLlp_basis *B, const EGlpNum_t rhs, int sense, const EGlpNum_t range, const char *name)
int ILLlib_newrows (lpinfo *lp, ILLlp_basis *B, int num, const EGlpNum_t *rhs, char *sense, const EGlpNum_t *range, const char **names)
int ILLlib_objval (lpinfo *lp, ILLlp_cache *C, EGlpNum_t *val)
int ILLlib_optimize (lpinfo *lp, ILLlp_basis *B, price_info *pinf, int algo, int *status, int simplex_display, struct itcnt_t *itcnt)
int ILLlib_print_x (EGioFile_t *fd, lpinfo *lp, ILLlp_cache *C, EGlpNum_t *x, int nonZerosOnly)
int ILLlib_readbasis (lpinfo *lp, ILLlp_basis *B, const char *fname)
int ILLlib_recompute_rownorms (lpinfo *lp, price_info *pinf)
int ILLlib_rowindex (lpinfo *lp, const char *name, int *rowindex)
int ILLlib_rownames (lpinfo *lp, char **rownames)
int ILLlib_solution (lpinfo *lp, ILLlp_cache *C, EGlpNum_t *val, EGlpNum_t *x, EGlpNum_t *pi, EGlpNum_t *slack, EGlpNum_t *rc)
int ILLlib_strongbranch (lpinfo *lp, price_info *pinf, int *candidatelist, int ncand, EGlpNum_t *xlist, EGlpNum_t *downpen, EGlpNum_t *uppen, int iterations, EGlpNum_t objbound, struct itcnt_t *itcnt)
int ILLlib_tableau (lpinfo *lp, int row, EGlpNum_t *binv, EGlpNum_t *tabrow)
int ILLlib_writebasis (lpinfo *lp, ILLlp_basis *B, const char *fname)
int ILLmip_binary_dfs (lpinfo *lp)
int ILLpresolve_add_logicals (ILLlpdata *lp)
int ILLwrite_lp_file (ILLlpdata *lp, EGioFile_t *eout, qserror_collector *c)


Function Documentation

int ILLlib_addcol ( lpinfo lp,
ILLlp_basis B,
int  cnt,
int *  ind,
EGlpNum_t *  val,
const EGlpNum_t  obj,
const EGlpNum_t  lower,
const EGlpNum_t  upper,
const char *  name,
int  factorok 
)

int ILLlib_addcols ( lpinfo lp,
ILLlp_basis B,
int  num,
int *  cmatcnt,
int *  cmatbeg,
int *  cmatind,
EGlpNum_t *  cmatval,
EGlpNum_t *  obj,
EGlpNum_t *  lower,
EGlpNum_t *  upper,
const char **  names,
int  factorok 
)

int ILLlib_addrow ( lpinfo lp,
ILLlp_basis B,
int  cnt,
int *  ind,
const EGlpNum_t *  val,
const EGlpNum_t  rhs,
int  sense,
const EGlpNum_t  range,
const char *  rowname 
)

int ILLlib_addrows ( lpinfo lp,
ILLlp_basis B,
int  num,
int *  rmatcnt,
int *  rmatbeg,
int *  rmatind,
const EGlpNum_t *  rmatval,
const EGlpNum_t *  rhs,
char *  sense,
const EGlpNum_t *  range,
const char **  names,
int *  nofactor 
)

int ILLlib_basis_order ( lpinfo lp,
int *  header 
)

int ILLlib_cache_solution ( lpinfo lp,
ILLlp_cache C 
)

int ILLlib_chgbnd ( lpinfo lp,
int  indx,
int  lu,
const EGlpNum_t  bnd 
)

int ILLlib_chgbnds ( lpinfo lp,
int  cnt,
int *  indx,
char *  lu,
const EGlpNum_t *  bnd 
)

int ILLlib_chgcoef ( lpinfo lp,
int  rowindex,
int  colindex,
EGlpNum_t  coef 
)

int ILLlib_chgobj ( lpinfo lp,
int  indx,
EGlpNum_t  coef 
)

int ILLlib_chgrange ( lpinfo lp,
int  indx,
EGlpNum_t  coef 
)

int ILLlib_chgrhs ( lpinfo lp,
int  indx,
EGlpNum_t  coef 
)

int ILLlib_chgsense ( lpinfo lp,
int  num,
int *  rowlist,
char *  sense 
)

int ILLlib_colindex ( lpinfo lp,
const char *  name,
int *  colindex 
)

int ILLlib_colnames ( lpinfo lp,
char **  colnames 
)

int ILLlib_delcols ( lpinfo lp,
ILLlp_basis B,
int  num,
int *  dellist,
int *  basis_ok 
)

int ILLlib_delrows ( lpinfo lp,
ILLlp_basis B,
ILLlp_cache C,
int  num,
int *  dellist,
int *  basis_ok,
int *  cache_ok 
)

int ILLlib_findName ( ILLlpdata qslp,
int  forRow,
const char *  name,
int  id,
char  buf[ILL_namebufsize] 
)

Definition at line 4201 of file lib.c.

References ILLlpdata::coltab, ILLsymboltab_create(), ILLsymboltab_lookup(), ILLsymboltab_uname(), ILLsymboltab_unique_name(), NULL, ILLlpdata::rowtab, and ILLsymboltab::tablesize.

Referenced by get_row_col_name(), and ILLlib_addcol().

Here is the call graph for this function:

int ILLlib_get_slack ( lpinfo lp,
ILLlp_cache C,
EGlpNum_t *  slack 
)

int ILLlib_get_x ( lpinfo lp,
ILLlp_cache C,
EGlpNum_t *  x 
)

int ILLlib_getbasis ( lpinfo lp,
char *  cstat,
char *  rstat 
)

int ILLlib_getbnd ( lpinfo lp,
int  indx,
int  lu,
EGlpNum_t *  bnd 
)

int ILLlib_getbnds ( lpinfo lp,
EGlpNum_t *  lower,
EGlpNum_t *  upper 
)

int ILLlib_getbnds_list ( lpinfo lp,
int  num,
int *  collist,
EGlpNum_t *  lower,
EGlpNum_t *  upper 
)

int ILLlib_getcoef ( lpinfo lp,
int  rowindex,
int  colindex,
EGlpNum_t *  coef 
)

int ILLlib_getcols ( lpinfo lp,
int  num,
int *  collist,
int **  colcnt,
int **  colbeg,
int **  colind,
EGlpNum_t **  colval,
EGlpNum_t **  obj,
EGlpNum_t **  lower,
EGlpNum_t **  upper,
char ***  names 
)

int ILLlib_getintflags ( lpinfo lp,
int *  intflags 
)

int ILLlib_getobj ( lpinfo lp,
EGlpNum_t *  obj 
)

int ILLlib_getobj_list ( lpinfo lp,
int  num,
int *  collist,
EGlpNum_t *  obj 
)

int ILLlib_getrhs ( lpinfo lp,
EGlpNum_t *  rhs 
)

int ILLlib_getrownorms ( lpinfo lp,
price_info pinf,
EGlpNum_t *  rownorms 
)

int ILLlib_getrows ( lpinfo lp,
int  num,
int *  rowlist,
int **  rowcnt,
int **  rowbeg,
int **  rowind,
EGlpNum_t **  rowval,
EGlpNum_t **  rhs,
char **  sense,
EGlpNum_t **  range,
char ***  names 
)

int ILLlib_getsenses ( lpinfo lp,
char *  senses 
)

int ILLlib_iter ( lpinfo lp  ) 

int ILLlib_loadbasis ( ILLlp_basis B,
int  nstruct,
int  nrows,
char *  cstat,
char *  rstat 
)

int ILLlib_loadrownorms ( lpinfo lp,
price_info pinf,
EGlpNum_t *  rownorms 
)

int ILLlib_newcol ( lpinfo lp,
ILLlp_basis B,
const EGlpNum_t  obj,
const EGlpNum_t  lower,
const EGlpNum_t  upper,
const char *  name,
int  factorok 
)

int ILLlib_newcols ( lpinfo lp,
ILLlp_basis B,
int  num,
EGlpNum_t *  obj,
EGlpNum_t *  lower,
EGlpNum_t *  upper,
const char **  names,
int  factorok 
)

int ILLlib_newrow ( lpinfo lp,
ILLlp_basis B,
const EGlpNum_t  rhs,
int  sense,
const EGlpNum_t  range,
const char *  name 
)

int ILLlib_newrows ( lpinfo lp,
ILLlp_basis B,
int  num,
const EGlpNum_t *  rhs,
char *  sense,
const EGlpNum_t *  range,
const char **  names 
)

int ILLlib_objval ( lpinfo lp,
ILLlp_cache C,
EGlpNum_t *  val 
)

int ILLlib_optimize ( lpinfo lp,
ILLlp_basis B,
price_info pinf,
int  algo,
int *  status,
int  simplex_display,
struct itcnt_t itcnt 
)

int ILLlib_print_x ( EGioFile_t *  fd,
lpinfo lp,
ILLlp_cache C,
EGlpNum_t *  x,
int  nonZerosOnly 
)

int ILLlib_readbasis ( lpinfo lp,
ILLlp_basis B,
const char *  fname 
)

int ILLlib_recompute_rownorms ( lpinfo lp,
price_info pinf 
)

int ILLlib_rowindex ( lpinfo lp,
const char *  name,
int *  rowindex 
)

int ILLlib_rownames ( lpinfo lp,
char **  rownames 
)

int ILLlib_solution ( lpinfo lp,
ILLlp_cache C,
EGlpNum_t *  val,
EGlpNum_t *  x,
EGlpNum_t *  pi,
EGlpNum_t *  slack,
EGlpNum_t *  rc 
)

int ILLlib_strongbranch ( lpinfo lp,
price_info pinf,
int *  candidatelist,
int  ncand,
EGlpNum_t *  xlist,
EGlpNum_t *  downpen,
EGlpNum_t *  uppen,
int  iterations,
EGlpNum_t  objbound,
struct itcnt_t itcnt 
)

int ILLlib_tableau ( lpinfo lp,
int  row,
EGlpNum_t *  binv,
EGlpNum_t *  tabrow 
)

int ILLlib_writebasis ( lpinfo lp,
ILLlp_basis B,
const char *  fname 
)

int ILLmip_binary_dfs ( lpinfo lp  ) 

int ILLpresolve_add_logicals ( ILLlpdata lp  ) 

int ILLwrite_lp_file ( ILLlpdata lp,
EGioFile_t *  eout,
qserror_collector c 
)

Definition at line 4244 of file lib.c.

References ILLstring_reporter_copy(), ILLstring_reporter_init(), ILLwrite_lp(), and ILLlpdata::reporter.

Referenced by ILLbasis_get_cinitial(), ILLbasis_get_initial(), and ILLbasis_update().

Here is the call graph for this function:


Generated on Thu Mar 29 09:41:20 2012 for QSopt_ex by  doxygen 1.4.7