FLOPC++
Public Member Functions | List of all members
flopc::MP_binary_variable Class Reference

#include <MP_variable.hpp>

Inheritance diagram for flopc::MP_binary_variable:
flopc::MP_variable flopc::RowMajor flopc::Functor flopc::Named

Public Member Functions

 MP_binary_variable (const MP_set_base &s1=MP_set::getEmpty(), const MP_set_base &s2=MP_set::getEmpty(), const MP_set_base &s3=MP_set::getEmpty(), const MP_set_base &s4=MP_set::getEmpty(), const MP_set_base &s5=MP_set::getEmpty())
- Public Member Functions inherited from flopc::MP_variable
 MP_variable (const MP_set_base &s1=MP_set::getEmpty(), const MP_set_base &s2=MP_set::getEmpty(), const MP_set_base &s3=MP_set::getEmpty(), const MP_set_base &s4=MP_set::getEmpty(), const MP_set_base &s5=MP_set::getEmpty())
void display (const std::string &s="")
 ~MP_variable ()
double level (int i1=0, int i2=0, int i3=0, int i4=0, int i5=0)
 Returns the value of the variable given the specific index values.
const VariableRefoperator() (const MP_index_exp &d1=MP_index_exp::getEmpty(), const MP_index_exp &d2=MP_index_exp::getEmpty(), const MP_index_exp &d3=MP_index_exp::getEmpty(), const MP_index_exp &d4=MP_index_exp::getEmpty(), const MP_index_exp &d5=MP_index_exp::getEmpty())
 Interal use only.
void binary ()
 Call this method to turn the variable into a binary variable.
void integer ()
 Call this method to turn the MP_variable into an integer variable.
- Public Member Functions inherited from flopc::RowMajor
int size () const
- Public Member Functions inherited from flopc::Functor
virtual void operator() () const =0
- Public Member Functions inherited from flopc::Named
string getName () const
void setName (const string &n)

Additional Inherited Members

- Public Attributes inherited from flopc::MP_variable
MP_data upperLimit
 Upper bound on the variable value.
MP_data lowerLimit
 Lower bound on the variable value.
- Protected Member Functions inherited from flopc::RowMajor
 RowMajor (int s1, int s2, int s3, int s4, int s5)
int f (int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) const
- Protected Member Functions inherited from flopc::Functor
 Functor ()
virtual ~Functor ()
 Functor (const Functor &)
- Protected Attributes inherited from flopc::RowMajor
int size1
int size2
int size3
int size4
int size5
int size_

Detailed Description

Specialized subclass of MP_variable where the variable is pre-specified to be binary.

Definition at line 96 of file MP_variable.hpp.

Constructor & Destructor Documentation

flopc::MP_binary_variable::MP_binary_variable ( const MP_set_base s1 = MP_set::getEmpty(),
const MP_set_base s2 = MP_set::getEmpty(),
const MP_set_base s3 = MP_set::getEmpty(),
const MP_set_base s4 = MP_set::getEmpty(),
const MP_set_base s5 = MP_set::getEmpty() 
)
inline

Definition at line 98 of file MP_variable.hpp.

References flopc::MP_variable::binary().


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