#include <fixcand.h>
Inheritance diagram for ABA_FIXCAND:
Public Member Functions | |
ABA_FIXCAND (ABA_MASTER *master) | |
~ABA_FIXCAND () | |
The destructor. | |
Private Member Functions | |
void | saveCandidates (ABA_SUB *sub) |
void | fixByRedCost (ABA_CUTBUFFER< ABA_VARIABLE, ABA_CONSTRAINT > *addVarBuffer) |
void | deleteAll () |
void | allocate (int nCand) |
ABA_FIXCAND (const ABA_FIXCAND &rhs) | |
const ABA_FIXCAND & | operator= (const ABA_FIXCAND &rhs) |
Private Attributes | |
ABA_MASTER * | master_ |
ABA_BUFFER< ABA_POOLSLOTREF< ABA_VARIABLE, ABA_CONSTRAINT > * > * | candidates_ |
ABA_BUFFER< ABA_FSVARSTAT * > * | fsVarStat_ |
ABA_BUFFER< double > * | lhs_ |
Friends | |
class | ABA_SUB |
class | ABA_MASTER |
Definition at line 60 of file fixcand.h.
ABA_FIXCAND::ABA_FIXCAND | ( | ABA_MASTER * | master | ) |
The constructor.
master | A pointer to the corresponding master of the optimization. |
ABA_FIXCAND::~ABA_FIXCAND | ( | ) |
The destructor.
ABA_FIXCAND::ABA_FIXCAND | ( | const ABA_FIXCAND & | rhs | ) | [private] |
void ABA_FIXCAND::saveCandidates | ( | ABA_SUB * | sub | ) | [private] |
Memorizes suitable variables for fixing.
sub | A pointer to the root node of the remaining \ tree. |
void ABA_FIXCAND::fixByRedCost | ( | ABA_CUTBUFFER< ABA_VARIABLE, ABA_CONSTRAINT > * | addVarBuffer | ) | [private] |
Tries to fix as many candidates as possible.
The new variable status is both stored in the global variable status of the class ABA_MASTER and in the local variable status of ABA_SUB. Candidates which are fixed are removed from the candidate set.
0 otherwise.
addVarBuffer | Inactive variables which are fixed to a nonzero value are added to addVarBuffer to be activated in the next iteration. |
void ABA_FIXCAND::deleteAll | ( | ) | [private] |
Deletes all allocated memory of members.
The member pointers are set to 0 that multiple deletion cannot cause any error.
void ABA_FIXCAND::allocate | ( | int | nCand | ) | [private] |
Allocates memory to store nCand candidates for fixing.
const ABA_FIXCAND& ABA_FIXCAND::operator= | ( | const ABA_FIXCAND & | rhs | ) | [private] |
friend class ABA_MASTER [friend] |
ABA_MASTER* ABA_FIXCAND::master_ [private] |
ABA_BUFFER<ABA_POOLSLOTREF<ABA_VARIABLE, ABA_CONSTRAINT>*>* ABA_FIXCAND::candidates_ [private] |
ABA_BUFFER<ABA_FSVARSTAT*>* ABA_FIXCAND::fsVarStat_ [private] |
ABA_BUFFER<double>* ABA_FIXCAND::lhs_ [private] |