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

#include <MCF1_var.hpp>

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

Public Member Functions

 MCF1_var (int com, const CoinPackedVector &f, double w)
 
 MCF1_var (BCP_buffer &buf)
 
 ~MCF1_var ()
 
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

int commodity
 
CoinPackedVector flow
 
double weight
 

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 21 of file MCF1_var.hpp.

Constructor & Destructor Documentation

MCF1_var::MCF1_var ( int  com,
const CoinPackedVector f,
double  w 
)
inline

Definition at line 28 of file MCF1_var.hpp.

MCF1_var::MCF1_var ( BCP_buffer buf)
MCF1_var::~MCF1_var ( )
inline

Definition at line 32 of file MCF1_var.hpp.

Member Function Documentation

void MCF1_var::pack ( BCP_buffer buf) const

Member Data Documentation

int MCF1_var::commodity

Definition at line 23 of file MCF1_var.hpp.

CoinPackedVector MCF1_var::flow

Definition at line 24 of file MCF1_var.hpp.

double MCF1_var::weight

Definition at line 25 of file MCF1_var.hpp.


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