#include <OS_tm.hpp>
Inheritance diagram for OS_tm:
Public Member Functions | |
void | readInput (const char *filename) |
Read input and set up data in class OS_prob. | |
virtual void | initialize_core (BCP_vec< BCP_var_core * > &vars, BCP_vec< BCP_cut_core * > &cuts, BCP_lp_relax *&matrix) |
Pass the core constraints and core variables to bcp. | |
virtual void | create_root (BCP_vec< BCP_var * > &added_vars, BCP_vec< BCP_cut * > &added_cuts, BCP_user_data *&user_data) |
Create the root node of the enumeration. | |
virtual void | display_feasible_solution (const BCP_solution *sol) |
Print a feasible solution. | |
void | readInput (const char *filename) |
Read input and set up data in class OS_prob. | |
virtual void | initialize_core (BCP_vec< BCP_var_core * > &vars, BCP_vec< BCP_cut_core * > &cuts, BCP_lp_relax *&matrix) |
Pass the core constraints and core variables to bcp. | |
virtual void | create_root (BCP_vec< BCP_var * > &added_vars, BCP_vec< BCP_cut * > &added_cuts, BCP_user_data *&user_data) |
Create the root node of the enumeration. | |
virtual void | display_feasible_solution (const BCP_solution *sol) |
Print a feasible solution. | |
Constructors and destructors | |
OS_tm () | |
Default constructor. | |
virtual | ~OS_tm () |
Default destructor. | |
Packing and unpacking methods | |
virtual void | pack_module_data (BCP_buffer &buf, BCP_process_t ptype) |
Pack data into a buffer; will not work in parallel environment as it uses pointer. | |
Constructors and destructors | |
OS_tm () | |
Default constructor. | |
virtual | ~OS_tm () |
Default destructor. | |
Packing and unpacking methods | |
virtual void | pack_module_data (BCP_buffer &buf, BCP_process_t ptype) |
Pack data into a buffer; will not work in parallel environment as it uses pointer. | |
Private Attributes | |
Private data member | |
OS_prob | os_prob |
Pointer to the description of the problem. |
Definition at line 29 of file OS_tm.hpp.
OS_tm::~OS_tm | ( | ) | [virtual] |
Default destructor.
Definition at line 220 of file OS_tm.cpp.
References os_prob, and OS_prob::osilreader.
OS_tm::OS_tm | ( | ) |
Default constructor.
virtual OS_tm::~OS_tm | ( | ) | [virtual] |
Default destructor.
void OS_tm::readInput | ( | const char * | filename | ) |
Read input and set up data in class OS_prob.
Definition at line 63 of file OS_tm.cpp.
References ErrorClass::errormsg, FileUtil::getFileAsString(), os_prob, OS_prob::osilreader, OS_prob::osinstance, and OSiLReader::readOSiL().
Referenced by OS_init::tm_init().
void OS_tm::pack_module_data | ( | BCP_buffer & | buf, | |
BCP_process_t | ptype | |||
) | [virtual] |
Pack data into a buffer; will not work in parallel environment as it uses pointer.
Reimplemented from BCP_tm_user.
Definition at line 105 of file OS_tm.cpp.
References BCP_ProcessType_LP, os_prob, and BCP_buffer::pack().
void OS_tm::initialize_core | ( | BCP_vec< BCP_var_core * > & | vars, | |
BCP_vec< BCP_cut_core * > & | cuts, | |||
BCP_lp_relax *& | matrix | |||
) | [virtual] |
Pass the core constraints and core variables to bcp.
Reimplemented from BCP_tm_user.
Definition at line 123 of file OS_tm.cpp.
References BCP_BinaryVar, BCP_ContinuousVar, BCP_IntegerVar, BCP_lp_relax::copyOf(), OSInstance::getConstraintLowerBounds(), OSInstance::getConstraintNumber(), OSInstance::getConstraintUpperBounds(), OSInstance::getDenseObjectiveCoefficients(), OSInstance::getLinearConstraintCoefficientMajor(), OSInstance::getLinearConstraintCoefficientNumber(), OSInstance::getLinearConstraintCoefficientsInColumnMajor(), OSInstance::getLinearConstraintCoefficientsInRowMajor(), OSInstance::getObjectiveMaxOrMins(), OSInstance::getVariableLowerBounds(), OSInstance::getVariableNumber(), OSInstance::getVariableTypes(), OSInstance::getVariableUpperBounds(), SparseMatrix::indexes, os_prob, OS_prob::osinstance, BCP_vec< T >::push_back(), SparseMatrix::starts, and SparseMatrix::values.
void OS_tm::create_root | ( | BCP_vec< BCP_var * > & | added_vars, | |
BCP_vec< BCP_cut * > & | added_cuts, | |||
BCP_user_data *& | user_data | |||
) | [virtual] |
Create the root node of the enumeration.
Reimplemented from BCP_tm_user.
Definition at line 191 of file OS_tm.cpp.
References os_prob.
void OS_tm::display_feasible_solution | ( | const BCP_solution * | sol | ) | [virtual] |
Print a feasible solution.
Reimplemented from BCP_tm_user.
Definition at line 201 of file OS_tm.cpp.
References BCP_tm_user::display_feasible_solution().
void OS_tm::readInput | ( | const char * | filename | ) |
Read input and set up data in class OS_prob.
virtual void OS_tm::pack_module_data | ( | BCP_buffer & | buf, | |
BCP_process_t | ptype | |||
) | [virtual] |
Pack data into a buffer; will not work in parallel environment as it uses pointer.
Reimplemented from BCP_tm_user.
virtual void OS_tm::initialize_core | ( | BCP_vec< BCP_var_core * > & | vars, | |
BCP_vec< BCP_cut_core * > & | cuts, | |||
BCP_lp_relax *& | matrix | |||
) | [virtual] |
virtual void OS_tm::create_root | ( | BCP_vec< BCP_var * > & | added_vars, | |
BCP_vec< BCP_cut * > & | added_cuts, | |||
BCP_user_data *& | user_data | |||
) | [virtual] |
virtual void OS_tm::display_feasible_solution | ( | const BCP_solution * | sol | ) | [virtual] |
OS_prob OS_tm::os_prob [private] |
Pointer to the description of the problem.
Definition at line 36 of file OS_tm.hpp.
Referenced by create_root(), initialize_core(), pack_module_data(), readInput(), and ~OS_tm().