CoinUtils 2.11.13
Loading...
Searching...
No Matches
slack_doubleton_action Class Reference

Convert an explicit bound constraint to a column bound. More...

#include <CoinPresolveSingleton.hpp>

Inheritance diagram for slack_doubleton_action:
Collaboration diagram for slack_doubleton_action:

Classes

struct  action

Public Member Functions

const char * name () const
 Construct a postsolve object and add it to the transformation list.
void postsolve (CoinPostsolveMatrix *prob) const
 Apply the postsolve transformation for this particular presolve action.
virtual ~slack_doubleton_action ()
Public Member Functions inherited from CoinPresolveAction
virtual ~CoinPresolveAction ()
 Virtual destructor.

Static Public Member Functions

static const CoinPresolveActionpresolve (CoinPresolveMatrix *prob, const CoinPresolveAction *next, bool &notFinished)
 Convert explicit bound constraints to column bounds.
Static Public Member Functions inherited from CoinPresolveAction
static void throwCoinError (const char *error, const char *ps_routine)
 Stub routine to throw exceptions.

Private Member Functions

 slack_doubleton_action (int nactions, const action *actions, const CoinPresolveAction *next)

Private Attributes

const int nactions_
const action *const actions_

Additional Inherited Members

Public Attributes inherited from CoinPresolveAction
const CoinPresolveActionnext
 The next presolve transformation.

Detailed Description

Convert an explicit bound constraint to a column bound.

This transform looks for explicit bound constraints for a variable and transfers the bound to the appropriate column bound array. The constraint is removed from the constraint system.

Definition at line 24 of file CoinPresolveSingleton.hpp.

Constructor & Destructor Documentation

◆ slack_doubleton_action()

slack_doubleton_action::slack_doubleton_action ( int nactions,
const action * actions,
const CoinPresolveAction * next )
inlineprivate

Definition at line 41 of file CoinPresolveSingleton.hpp.

◆ ~slack_doubleton_action()

virtual slack_doubleton_action::~slack_doubleton_action ( )
inlinevirtual

Definition at line 65 of file CoinPresolveSingleton.hpp.

Member Function Documentation

◆ name()

const char * slack_doubleton_action::name ( ) const
inlinevirtual

Construct a postsolve object and add it to the transformation list.

This is an `add to head' operation. This object will point to the one passed as the parameter. */ CoinPresolveAction(const CoinPresolveAction *next) : next(next) { } modify next (when building rather than passing) inline void setNext(const CoinPresolveAction *nextAction) { next = nextAction; }

/*! A name for debug printing.

It is expected that the name is not stored in the transform itself.

Implements CoinPresolveAction.

Definition at line 51 of file CoinPresolveSingleton.hpp.

◆ presolve()

const CoinPresolveAction * slack_doubleton_action::presolve ( CoinPresolveMatrix * prob,
const CoinPresolveAction * next,
bool & notFinished )
static

Convert explicit bound constraints to column bounds.

Not now There is a hard limit (#MAX_SLACK_DOUBLETONS) on the number of constraints processed in a given call. notFinished is set to true if candidates remain.

◆ postsolve()

void slack_doubleton_action::postsolve ( CoinPostsolveMatrix * prob) const
virtual

Apply the postsolve transformation for this particular presolve action.

Implements CoinPresolveAction.

Member Data Documentation

◆ nactions_

const int slack_doubleton_action::nactions_
private

Definition at line 38 of file CoinPresolveSingleton.hpp.

◆ actions_

const action* const slack_doubleton_action::actions_
private

Definition at line 39 of file CoinPresolveSingleton.hpp.


The documentation for this class was generated from the following file: