simplex_glpk.c
Go to the documentation of this file.
void SimplexCreate(double epsilon, unsigned int ncols, TSimplex *s) Constructor. Definition: simplex_glpk.c:22 void SimplexGetColConstraint(unsigned int ncol, TLinearConstraint *lc, TSimplex *s) Gets a column from the simplex in the form of a linear constraint. Definition: simplex_glpk.c:137 Definition of basic functions. void SimplexSetOptimizationFunction(TLinearConstraint *obj, TSimplex *s) Sets a new objective function. Definition: simplex_glpk.c:312 double SimplexGetOptimalValueRaw(TSimplex *s) Gets the optimal value after optimizing the problem. Definition: simplex_glpk.c:355 double SimplexGetRowDual(unsigned int nrow, TSimplex *s) Gets a row dual value after solving the simplex. Definition: simplex_glpk.c:264 boolean SimplexColEmpty(unsigned int ncol, TSimplex *s) Checks if a simplex column is empty. Definition: simplex_glpk.c:162 unsigned int GetLinearConstraintVariable(unsigned int i, TLinearConstraint *lc) Gets the a particular variable index. Definition: linear_constraint.c:75 void PrintLinearConstraint(FILE *f, boolean eq, char **varName, TLinearConstraint *lc) Prints a linear constraint. Definition: linear_constraint.c:548 void AddTerm2LinearConstraint(unsigned int ind, double val, TLinearConstraint *lc) Adds a scaled variable to the linear constraint. Definition: linear_constraint.c:106 Error and warning functions. void SimplexGetOptimizationFunction(TLinearConstraint *obj, TSimplex *s) Gets a current objective function. Definition: simplex_glpk.c:343 Definitions of constants and macros used in several parts of the cuik library. void SimplexSetRowBounds(unsigned int nrow, Tinterval *i, TSimplex *s) Sets the bounds for a given row (i.e., constraint). Definition: simplex_glpk.c:178 double SimplexGetColDual(unsigned int ncol, TSimplex *s) Gets a column dual value after solving the simplex. Definition: simplex_glpk.c:172 double SimplexGetColPrimal(unsigned int ncol, TSimplex *s) Gets a column primal value after solving the simplex. Definition: simplex_glpk.c:167 void SimplexGetColBounds(unsigned int ncol, Tinterval *i, TSimplex *s) Gets the bounds for a given column (i.e., variable). Definition: simplex_glpk.c:110 unsigned int GetNumTermsInLinearConstraint(TLinearConstraint *lc) Number of variables in a linear constraint. Definition: linear_constraint.c:49 void GetLinearConstraintError(Tinterval *error, TLinearConstraint *lc) Gets the right-hand side interval for the linear constraint. Definition: linear_constraint.c:86 Definition of the TSimplex type and the associated functions. void SimplexSetColBounds(unsigned int ncol, Tinterval *i, TSimplex *s) Sets the bounds for a given column (i.e., variable). Definition: simplex_glpk.c:81 unsigned int SimplexNColumns(TSimplex *s) Gets the number of columns (i.e., variables) of the simplex structure. Definition: simplex_glpk.c:70 void SetLinearConstraintError(Tinterval *error, TLinearConstraint *lc) Sets a new righ-hand side error of the linear constraint. Definition: linear_constraint.c:96 unsigned int SimplexNRows(TSimplex *s) Gets the number of rows (i.e., constraints) of the simplex structure. Definition: simplex_glpk.c:75 double GetLinearConstraintCoefficient(unsigned int i, TLinearConstraint *lc) Gets the a particular linear constraint coefficient. Definition: linear_constraint.c:59 void SimplexGetRowBounds(unsigned int nrow, Tinterval *i, TSimplex *s) Gets the bounds for a given row (i.e., constraint). Definition: simplex_glpk.c:207 double SimplexGetRowPrimal(unsigned int nrow, TSimplex *s) Gets a row primal value after solving the simplex. Definition: simplex_glpk.c:259 void SimplexGetRowConstraint(unsigned int nrow, TLinearConstraint *lc, TSimplex *s) Gets a row constraint from the simplex. Definition: simplex_glpk.c:234 void SimplexAddNewConstraintRaw(TLinearConstraint *lc, TSimplex *s) Adds a row (i.e., a constraint) to the simplex. Definition: simplex_glpk.c:269 |
Follow us!