Go to the documentation of this file.
6 #ifndef CoinPresolveFixed_H
7 #define CoinPresolveFixed_H
8 #define FIXED_VARIABLE 1
54 const char *
name()
const;
131 const char *
name()
const;
int nactions_
Number of entries in actions_.
int * colrows_
Array of row indices for coefficients of excised columns.
void transferCosts(CoinPresolveMatrix *prob)
Transfer costs from singleton variables.
int col
column index of variable
const CoinPresolveAction * remove_fixed(CoinPresolveMatrix *prob, const CoinPresolveAction *next)
Scan the problem for fixed columns and remove them.
double sol
value of variable
remove_fixed_action(int nactions, action *actions, double *colels, int *colrows, const CoinPresolveAction *next)
Constructor.
Excise fixed variables from the model.
Fix a variable at a specified bound.
void postsolve(CoinPostsolveMatrix *prob) const
Postsolve (unfix variables)
const char * name() const
Returns string "make_fixed_action".
const action * actions_
Vector of preserved bounds, one for each variable fixed in this object.
#define deleteAction(array, type)
double * colels_
Array of coefficients of excised columns.
virtual ~make_fixed_action()
Destructor.
static const CoinPresolveAction * presolve(CoinPresolveMatrix *prob, int *fcols, int nfcols, bool fix_to_lower, const CoinPresolveAction *next)
Perform actions to fix variables and return postsolve object.
Augments CoinPrePostsolveMatrix with information about the problem that is only needed during postsol...
static const remove_fixed_action * presolve(CoinPresolveMatrix *prob, int *fcols, int nfcols, const CoinPresolveAction *next)
Excise the specified columns.
int nactions_
Number of preserved bounds.
virtual ~remove_fixed_action()
Destructor.
void postsolve(CoinPostsolveMatrix *prob) const
Apply the postsolve transformation for this particular presolve action.
int start
start of coefficients in colels_ and colrows_
action * actions_
Vector specifying variable(s) affected by this object.
const remove_fixed_action * faction_
The postsolve object with the information required to repopulate the fixed columns.
const bool fix_to_lower_
True to fix at lower bound, false to fix at upper bound.
Abstract base class of all presolve routines.
const CoinPresolveAction * make_fixed(CoinPresolveMatrix *prob, const CoinPresolveAction *next)
Scan variables and fix any with equal bounds.
int col
column index of variable
make_fixed_action(int nactions, const action *actions, bool fix_to_lower, const remove_fixed_action *faction, const CoinPresolveAction *next)
Constructor.
Structure to preserve the bound overwritten when fixing a variable.
const char * name() const
Returns string "remove_fixed_action".
double bound
Value of bound overwritten to fix variable.
Augments CoinPrePostsolveMatrix with information about the problem that is only needed during presolv...
const CoinPresolveAction * next
The next presolve transformation.