coin-Bcp
Public Member Functions | Public Attributes | List of all members
MKC_var Class Reference

#include <MKC_var.hpp>

Inheritance diagram for MKC_var:
Inheritance graph
[legend]
Collaboration diagram for MKC_var:
Collaboration graph
[legend]

Public Member Functions

 MKC_var (const double c, const int num, int *&entr, const int clr[2])
 
 MKC_var (const MKC_var &x)
 
 MKC_var (BCP_buffer &buf)
 
 ~MKC_var ()
 
double dj (const double *dual) const
 
void pack (BCP_buffer &buf) const
 
- Public Member Functions inherited from BCP_var_algo
 BCP_var_algo (const BCP_var_t var_type, const double obj, const double lb, const double ub)
 This constructor just sets the data members to the given values. More...
 
virtual ~BCP_var_algo ()=0
 The destructor deletes the object. More...
 
BCP_object_t obj_type () const
 Return BCP_AlgoObj indicating that the object is an algorithmic variable. More...
 
- Public Member Functions inherited from BCP_var
 BCP_var (const BCP_var_t var_type, const double obj, const double lb, const double ub)
 The constructor sets the internal index of the variable to zero and the other data members to the given arguments. More...
 
virtual ~BCP_var ()
 The destructor is virtual so that the appropriate destructor is invoked for every variable. More...
 
BCP_var_t var_type () const
 Return the integrality type of the variable. More...
 
double obj () const
 Return the objective coefficient. More...
 
double lb () const
 Return the lower bound. More...
 
double ub () const
 Return the upper bound. More...
 
int bcpind () const
 Return the internal index of the variable. More...
 
BCP_obj_status status () const
 Return the status of the variable. More...
 
bool dont_send_to_pool () const
 Return whether the variable should be sent to the Variable Pool process. More...
 
bool is_fixed () const
 Return whether the variable is fixed or not. More...
 
bool is_fixed_to_zero () const
 Return whether the variable is fixed to zero or not. More...
 
bool is_non_removable () const
 Return whether the variable is marked NotRemovable. More...
 
bool is_removable () const
 Return whether the variable is removable from the formulation at the time of the query. More...
 
bool is_to_be_removed () const
 Return whether the variable must be removed from the formulation. More...
 
void test_inactive ()
 Test (and set) whether the var is fixed (inactive) More...
 
void set_var_type (const BCP_var_t type)
 Set the integrality type of the variable. More...
 
void set_obj (const double obj)
 Set the objective coefficient. More...
 
void set_lb (const double lb)
 Set the lower bound. More...
 
void set_ub (const double ub)
 Set the upper bound. More...
 
void set_lb_ub (const double lb, const double ub)
 Set both lower and upper bounds. More...
 
void change_lb_ub_st (const BCP_obj_change &change)
 Set the lower/upper bounds and the status of the variable simultaneously to the values given in the data members of the argument. More...
 
void change_bounds (const double lb, const double ub)
 Change the lower and upper bounds to the given values. More...
 
void set_bcpind (const int bcpind)
 Set the internal index of the variable. More...
 
void set_bcpind_flip ()
 Flip the internal index of the variable to its negative. More...
 
void set_status (const BCP_obj_status status)
 Set the status of the variable. More...
 
void dont_send_to_pool (bool flag)
 Set/unset the flag controlling whether the variable could be sent to the Variable Pool process. More...
 
void make_active ()
 Mark the variable as active. More...
 
void make_non_removable ()
 Mark the variable as NotRemovable. More...
 
void make_to_be_removed ()
 Mark the variable as ToBeRemoved. More...
 
void display (const double val) const
 Display the object type, internal index, and the value given in the argument. More...
 
- Public Member Functions inherited from Coin::ReferencedObject
 ReferencedObject ()
 
virtual ~ReferencedObject ()
 
int ReferenceCount () const
 
void AddRef () const
 
void ReleaseRef () const
 

Public Attributes

double cost
 
int entry_num
 
int * entries
 
int color [2]
 

Additional Inherited Members

- Protected Attributes inherited from BCP_var
BCP_var_t _var_type
 The integrality type of the variable. More...
 
double _obj
 The objective coefficient. More...
 
double _lb
 Lower bound on the value the variable can take. More...
 
double _ub
 Upper bound on the value the variable can take. More...
 

Detailed Description

Definition at line 16 of file MKC_var.hpp.

Constructor & Destructor Documentation

MKC_var::MKC_var ( const double  c,
const int  num,
int *&  entr,
const int  clr[2] 
)
inline

Definition at line 24 of file MKC_var.hpp.

References color.

MKC_var::MKC_var ( const MKC_var x)
inline

Definition at line 31 of file MKC_var.hpp.

References color, entries, and entry_num.

MKC_var::MKC_var ( BCP_buffer buf)
inline

Definition at line 38 of file MKC_var.hpp.

References color, cost, entries, entry_num, BCP_var::set_obj(), and BCP_buffer::unpack().

MKC_var::~MKC_var ( )
inline

Definition at line 46 of file MKC_var.hpp.

References entries.

Member Function Documentation

double MKC_var::dj ( const double *  dual) const
inline

Definition at line 51 of file MKC_var.hpp.

References cost, entries, and entry_num.

void MKC_var::pack ( BCP_buffer buf) const
inline

Definition at line 58 of file MKC_var.hpp.

References color, cost, entries, entry_num, and BCP_buffer::pack().

Referenced by MKC_var_pack().

Member Data Documentation

double MKC_var::cost

Definition at line 18 of file MKC_var.hpp.

Referenced by dj(), MKC_var(), and pack().

int MKC_var::entry_num

Definition at line 19 of file MKC_var.hpp.

Referenced by dj(), MKC_var(), and pack().

int* MKC_var::entries

Definition at line 20 of file MKC_var.hpp.

Referenced by dj(), MKC_var(), pack(), and ~MKC_var().

int MKC_var::color[2]

Definition at line 22 of file MKC_var.hpp.

Referenced by MKC_var(), and pack().


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