RLP
1.5
|
Definitions of data types and functions required to read and store the data about the problem. More...
Go to the source code of this file.
Data Structures | |
struct | SExp |
Expression structure. More... | |
struct | SProb |
Problem structure. More... | |
Typedefs | |
typedef SExp * | Exp |
Expression definition. More... | |
typedef SProb * | Prob |
Problem definition. More... | |
Functions | |
Exp | newExp (int arraysize) |
Creates an expression. More... | |
Prob | newProb () |
Creates a problem. More... | |
int | varhash (const char *varid) |
Hash function for variables names. More... | |
int | addCoefHead (Prob prob, const char *varid, int varc, double coef) |
Adds a new condition to the problem, and adds the coefficients of a variable. More... | |
int | addCoefTail (Prob prob, const char *varid, int varc, double coef) |
Adds the coefficient of a variable. More... | |
int | setOpRHS (Prob prob, int op, double rhs) |
Adds the relational operator and the right-hand side to a condition. More... | |
Definitions of data types and functions required to read and store the data about the problem.
Definition in file read.h.
int addCoefHead | ( | Prob | prob, |
const char * | varid, | ||
int | varc, | ||
double | coef | ||
) |
Adds a new condition to the problem, and adds the coefficients of a variable.
If the variable did not exist in the variables set, it is added.
prob | the problem. |
varid | the variable identifier. |
varc | the index of the variable if it does not exist. |
coef | the coefficient of the variable. |
int addCoefTail | ( | Prob | prob, |
const char * | varid, | ||
int | varc, | ||
double | coef | ||
) |
Adds the coefficient of a variable.
If the variable did not exist in the variables set, it is added.
prob | the problem. |
varid | the variable identifier. |
varc | the index of the variable if it does not exist. |
coef | the coefficient of the variable. |
Exp newExp | ( | int | arraysize | ) |
Prob newProb | ( | ) |
int setOpRHS | ( | Prob | prob, |
int | op, | ||
double | rhs | ||
) |
RLP © 2006, 2009, 2015 Rui Carlos Gonçalves