float128_lp.c File Reference

#include <stdio.h>
#include "qs_config.h"
#include "float128_iqsutil.h"
#include "float128_lp.h"
#include "float128_rawlp.h"
#include "float128_read_lp.h"
#include "float128_write_lp.h"

Include dependency graph for float128_lp.c:

Go to the source code of this file.

Functions

static int float128_add_var (float128_rawlpdata *lp, float128_ILLread_lp_state *state, float128 coef, int row, int allowNew)
static int float128_fix_names (float128_qserror_collector *collector, char **names, int nnames, const char *extra, int prefix, char ***newnames)
int float128_ILLis_lp_name_char (int c, int pos)
int float128_ILLread_constraint_expr (float128_ILLread_lp_state *state, float128_rawlpdata *lp, int rowind, int allowNew)
int float128_ILLread_constraint_name (float128_ILLread_lp_state *state, char **rowname)
int float128_ILLread_lp (float128_qsline_reader *file, const char *float128_fname, float128_rawlpdata *lp)
int float128_ILLread_one_constraint (float128_ILLread_lp_state *state, const char *rowname, float128_rawlpdata *lp, int allowNewCols)
int float128_ILLwrite_lp (float128_ILLlpdata *lp, float128_qserror_collector *collector)
static int float128_read_bounds (float128_ILLread_lp_state *state, float128_rawlpdata *lp)
static int float128_read_colname (float128_ILLread_lp_state *state, ILLsymboltab *coltab, int mustHave)
static int float128_read_constraints (float128_ILLread_lp_state *state, float128_rawlpdata *lp, int allowNewCols)
static int float128_read_integer (float128_ILLread_lp_state *state, float128_rawlpdata *lp)
static int float128_read_minmax (float128_ILLread_lp_state *state, float128_rawlpdata *lp)
static int float128_read_objective (float128_ILLread_lp_state *state, float128_rawlpdata *lp)
static int float128_read_problem_name (float128_ILLread_lp_state *state, float128_rawlpdata *lp)
static int float128_write_bounds (float128_ILLlpdata *lp, char **colnames)
static void float128_write_intvars (float128_ILLlpdata *lp, char **colnames)
static void float128_write_objective (float128_ILLlpdata *lp, const char *objname, char **colnames)
static int float128_write_row (float128_ILLlpdata *lp, float128_ILLlp_rows *lprows, int i, char **rownames, char **colnames, int *colInRow, float128 *colCoef)
static void float128_write_the_expr (float128_ILLlpdata *lp, float128_ILLwrite_lp_state *line, char *rowname, float128_ILLlp_rows *lprows, int row, char **colnames, int *colInRow, float128 *colCoef, int ncols)

Variables

static const int float128_LINE_LEN = 256
static int TRACE = 0


Function Documentation

static int float128_add_var ( float128_rawlpdata lp,
float128_ILLread_lp_state state,
float128  coef,
int  row,
int  allowNew 
) [static]

Definition at line 1241 of file float128_lp.c.

References float128_rawlpdata::coltab, float128_ILLread_lp_state::field, float128_ILLlp_error(), float128_ILLraw_add_col(), float128_ILLraw_add_col_coef(), float128_ILLraw_rowname(), ILL_IFTRACE, ILLsymboltab_lookup(), and float128_rawlpdata::ncols.

Referenced by float128_ILLread_constraint_expr().

Here is the call graph for this function:

static int float128_fix_names ( float128_qserror_collector collector,
char **  names,
int  nnames,
const char *  extra,
int  prefix,
char ***  newnames 
) [static]

Definition at line 584 of file float128_lp.c.

References float128_ILLdata_warn(), float128_ILLis_lp_name_char(), ILL_FAILfalse, ILL_namebufsize, ILL_SAFE_MALLOC, ILLsymboltab_create(), ILLsymboltab_free(), ILLsymboltab_init(), ILLsymboltab_register(), ILLsymboltab_rename(), ILLsymboltab_uname(), and NULL.

Referenced by float128_ILLwrite_lp().

Here is the call graph for this function:

int float128_ILLis_lp_name_char ( int  c,
int  pos 
)

Definition at line 74 of file float128_lp.c.

References NULL.

Referenced by float128_fix_names(), and float128_ILLread_lp_state_next_var().

int float128_ILLread_constraint_expr ( float128_ILLread_lp_state state,
float128_rawlpdata lp,
int  rowind,
int  allowNew 
)

Definition at line 851 of file float128_lp.c.

References float128_add_var(), float128_ILLlp_error(), float128_ILLlp_warn(), float128_ILLraw_rowname(), float128_ILLread_lp_state_next_var(), float128_ILLread_lp_state_possible_coef(), float128_ILLread_lp_state_sign(), and NULL.

Referenced by float128_ILLread_one_constraint(), and float128_read_objective().

Here is the call graph for this function:

int float128_ILLread_constraint_name ( float128_ILLread_lp_state state,
char **  rowname 
)

Definition at line 971 of file float128_lp.c.

References float128_ILLlp_error(), float128_ILLread_lp_state_colon(), float128_ILLread_lp_state_has_colon(), float128_ILLread_lp_state_next_var(), and NULL.

Referenced by float128_get_row_col_name(), and float128_read_constraints().

Here is the call graph for this function:

int float128_ILLread_lp ( float128_qsline_reader file,
const char *  float128_fname,
float128_rawlpdata lp 
)

Definition at line 685 of file float128_lp.c.

References float128_ILLread_lp_state::bound_val, float128_rawlpdata::coltab, float128_qsline_reader::error_collector, float128_ILLinit_rawlpdata(), float128_ILLlp_error(), float128_ILLraw_fill_in_bounds(), float128_ILLraw_fill_in_rownames(), float128_ILLread_lp_state_init(), float128_ILLread_lp_state_keyword(), float128_ILLread_lp_state_next_field(), float128_read_bounds(), float128_read_constraints(), float128_read_integer(), float128_read_minmax(), float128_read_objective(), float128_read_problem_name(), ILLsymboltab_create(), float128_rawlpdata::ncols, float128_rawlpdata::nrows, NULL, and float128_rawlpdata::rowtab.

Referenced by float128_ILLread().

Here is the call graph for this function:

int float128_ILLread_one_constraint ( float128_ILLread_lp_state state,
const char *  rowname,
float128_rawlpdata lp,
int  allowNewCols 
)

Definition at line 998 of file float128_lp.c.

References float128_ILLlp_error(), float128_ILLraw_add_row(), float128_ILLraw_rowname(), float128_ILLread_constraint_expr(), float128_ILLread_lp_state_sense(), float128_ILLread_lp_state_value(), ILL_IFTRACE, ILLsymboltab_lookup(), float128_rawlpdata::nrows, NULL, float128_rawlpdata::rhs, float128_rawlpdata::rowsense, float128_rawlpdata::rowtab, and float128_ILLread_lp_state::sense_val.

Referenced by float128_add_col(), float128_add_row(), and float128_read_constraints().

Here is the call graph for this function:

int float128_ILLwrite_lp ( float128_ILLlpdata lp,
float128_qserror_collector collector 
)

Definition at line 173 of file float128_lp.c.

References float128_ILLlpdata::colnames, float128_ILLlpdata::coltab, float128_fix_names(), float128_ILLdata_error(), float128_ILLlp_rows_init(), float128_ILLprint_report(), float128_write_objective(), float128_write_row(), ILL_FAILfalse, ILL_FAILtrue, ILL_SAFE_MALLOC, ILLsymboltab_contains(), float128_ILLmatrix::matcols, float128_ILLlpdata::nrows, float128_ILLlpdata::nstruct, NULL, float128_ILLlpdata::objname, float128_ILLlpdata::rownames, float128_ILLlpdata::rowtab, float128_ILLlpdata::sos, and ILLsymboltab::tablesize.

Referenced by float128_ILLlib_optimize(), float128_ILLwrite_lp_file(), and float128_QSreport_prob().

Here is the call graph for this function:

static int float128_read_bounds ( float128_ILLread_lp_state state,
float128_rawlpdata lp 
) [static]

Definition at line 1133 of file float128_lp.c.

References float128_rawlpdata::coltab, float128_ILLlp_error(), float128_ILLlp_warn(), float128_ILLraw_colname(), float128_ILLraw_init_bounds(), float128_ILLraw_set_fixedBound(), float128_ILLraw_set_lowerBound(), float128_ILLraw_set_unbound(), float128_ILLraw_set_upperBound(), float128_ILLread_lp_state_next_field(), float128_ILLread_lp_state_possible_bound_value(), float128_ILLtest_lp_state_bound_sense(), float128_ILLtest_lp_state_next_is(), float128_read_colname(), ILL_FAILtrue, ILL_IFTRACE, float128_rawlpdata::lower, and float128_rawlpdata::upper.

Referenced by float128_ILLread_lp().

Here is the call graph for this function:

static int float128_read_colname ( float128_ILLread_lp_state state,
ILLsymboltab coltab,
int  mustHave 
) [static]

Definition at line 1080 of file float128_lp.c.

References float128_ILLread_lp_state::column_index, float128_ILLread_lp_state::field, float128_ILLlp_error(), float128_ILLread_lp_state_next_var(), float128_ILLread_lp_state_prev_field(), ILL_SYM_NOINDEX, and ILLsymboltab_lookup().

Referenced by float128_read_bounds(), and float128_read_integer().

Here is the call graph for this function:

static int float128_read_constraints ( float128_ILLread_lp_state state,
float128_rawlpdata lp,
int  allowNewCols 
) [static]

Definition at line 1043 of file float128_lp.c.

References float128_ILLcheck_subject_to(), float128_ILLlp_error(), float128_ILLread_constraint_name(), float128_ILLread_lp_state_next_constraint(), float128_ILLread_lp_state_next_field(), float128_ILLread_one_constraint(), and NULL.

Referenced by float128_ILLread_lp().

Here is the call graph for this function:

static int float128_read_integer ( float128_ILLread_lp_state state,
float128_rawlpdata lp 
) [static]

Definition at line 1106 of file float128_lp.c.

References float128_rawlpdata::coltab, float128_ILLlp_error(), float128_ILLread_lp_state_next_field(), float128_read_colname(), ILL_FAILfalse, ILL_FAILtrue, ILL_SYM_NOINDEX, and float128_rawlpdata::intmarker.

Referenced by float128_ILLread_lp().

Here is the call graph for this function:

static int float128_read_minmax ( float128_ILLread_lp_state state,
float128_rawlpdata lp 
) [static]

Definition at line 815 of file float128_lp.c.

References float128_ILLread_lp_state::field, float128_ILLread_lp_state::fieldOnFirstCol, float128_ILL_MAX, float128_ILL_MIN, float128_ILLlp_error(), float128_ILLread_lp_state_prev_field(), float128_ILLutil_strcasecmp(), and float128_rawlpdata::objsense.

Referenced by float128_ILLread_lp().

Here is the call graph for this function:

static int float128_read_objective ( float128_ILLread_lp_state state,
float128_rawlpdata lp 
) [static]

Definition at line 919 of file float128_lp.c.

References float128_ILLlp_error(), float128_ILLlp_warn(), float128_ILLraw_add_row(), float128_ILLread_constraint_expr(), float128_ILLread_lp_state_colon(), float128_ILLread_lp_state_has_colon(), float128_ILLread_lp_state_next_var(), float128_ILLread_lp_state_skip_blanks(), ILL_FAILfalse, ILL_namebufsize, float128_rawlpdata::nrows, NULL, float128_rawlpdata::objindex, float128_rawlpdata::rowtab, and ILLsymboltab::tablesize.

Referenced by float128_ILLread_lp().

Here is the call graph for this function:

static int float128_read_problem_name ( float128_ILLread_lp_state state,
float128_rawlpdata lp 
) [static]

Definition at line 783 of file float128_lp.c.

References float128_ILLread_lp_state::field, float128_ILLread_lp_state::fieldOnFirstCol, float128_ILLlp_error(), float128_ILLread_lp_state_next_field(), float128_ILLutil_strcasecmp(), ILL_IFFREE, ILL_IFTRACE, and float128_rawlpdata::name.

Referenced by float128_ILLread_lp().

Here is the call graph for this function:

static int float128_write_bounds ( float128_ILLlpdata lp,
char **  colnames 
) [static]

Definition at line 474 of file float128_lp.c.

References float128_ILLwrite_lp_state::buf, float128_ILL_MAXDOUBLE, float128_ILL_MINDOUBLE, float128_ILLprint_report(), float128_ILLraw_default_lower(), float128_ILLraw_default_upper(), float128_ILLraw_first_nondefault_bound(), float128_ILLwrite_lp_state_append(), float128_ILLwrite_lp_state_append_number(), float128_ILLwrite_lp_state_init(), float128_ILLwrite_lp_state_save_start(), float128_ILLwrite_lp_state_start(), ILL_FAILtrue, float128_ILLlpdata::lower, float128_ILLlpdata::nstruct, NULL, float128_ILLlpdata::structmap, and float128_ILLlpdata::upper.

Here is the call graph for this function:

static void float128_write_intvars ( float128_ILLlpdata lp,
char **  colnames 
) [static]

Definition at line 538 of file float128_lp.c.

References float128_ILLwrite_lp_state::buf, float128_ILLprint_report(), float128_ILLwrite_lp_state_append(), float128_ILLwrite_lp_state_init(), float128_ILLwrite_lp_state_save_start(), float128_LINE_LEN, float128_ILLlpdata::intmarker, float128_ILLlpdata::nstruct, and float128_ILLwrite_lp_state::total.

Here is the call graph for this function:

static void float128_write_objective ( float128_ILLlpdata lp,
const char *  objname,
char **  colnames 
) [static]

Definition at line 279 of file float128_lp.c.

References float128_ILL_MIN, float128_ILLprint_report(), float128_ILLwrite_lp_state_append(), float128_ILLwrite_lp_state_append_coef(), float128_ILLwrite_lp_state_init(), float128_ILLwrite_lp_state_save_start(), float128_ILLwrite_lp_state_start(), float128_LINE_LEN, float128_ILLlpdata::nstruct, NULL, float128_ILLlpdata::obj, float128_ILLlpdata::objsense, float128_ILLlpdata::probname, and float128_ILLlpdata::structmap.

Referenced by float128_ILLwrite_lp().

Here is the call graph for this function:

static int float128_write_row ( float128_ILLlpdata lp,
float128_ILLlp_rows lprows,
int  i,
char **  rownames,
char **  colnames,
int *  colInRow,
float128 *  colCoef 
) [static]

Definition at line 415 of file float128_lp.c.

References float128_ILLwrite_lp_state::buf, float128_ILLprint_report(), float128_ILLwrite_lp_state_append(), float128_ILLwrite_lp_state_append_number(), float128_write_the_expr(), ILL_FAILtrue, float128_ILLlpdata::nstruct, NULL, float128_ILLlpdata::rangeval, float128_ILLlpdata::rhs, and float128_ILLlpdata::sense.

Referenced by float128_ILLwrite_lp().

Here is the call graph for this function:

static void float128_write_the_expr ( float128_ILLlpdata lp,
float128_ILLwrite_lp_state line,
char *  rowname,
float128_ILLlp_rows lprows,
int  row,
char **  colnames,
int *  colInRow,
float128 *  colCoef,
int  ncols 
) [static]

Definition at line 351 of file float128_lp.c.

References float128_ILLwrite_lp_state::buf, float128_ILLprint_report(), float128_ILLwrite_lp_state_append(), float128_ILLwrite_lp_state_append_coef(), float128_ILLwrite_lp_state_init(), float128_ILLwrite_lp_state_save_start(), float128_ILLwrite_lp_state_start(), float128_LINE_LEN, NULL, float128_ILLlp_rows::rowbeg, float128_ILLlp_rows::rowcnt, float128_ILLlp_rows::rowind, float128_ILLlp_rows::rowval, and float128_ILLwrite_lp_state::total.

Referenced by float128_write_row().

Here is the call graph for this function:


Variable Documentation

const int float128_LINE_LEN = 256 [static]

Definition at line 98 of file float128_lp.c.

Referenced by float128_write_intvars(), float128_write_objective(), and float128_write_the_expr().

int TRACE = 0 [static]

Definition at line 109 of file float128_lp.c.


Generated on Thu Mar 29 09:36:12 2012 for QSopt_ex by  doxygen 1.4.7