Public Member Functions | Public Attributes | Private Attributes | List of all members
FlopSmiEx::CoreNodeBase::SP_constraint Class Reference

class for a stochastic (node-based) constraint More...

#include <corenode_base.hpp>

Inheritance diagram for FlopSmiEx::CoreNodeBase::SP_constraint:
Inheritance graph
[legend]
Collaboration diagram for FlopSmiEx::CoreNodeBase::SP_constraint:
Collaboration graph
[legend]

Public Member Functions

 p2node (CoreNodeBase::p2activeNode)
 
 constrIndx (static_cast< int >(p2node->all_constraints.size()))
 
- Public Member Functions inherited from flopc::MP_constraint
 MP_constraint (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())
 construct the MP_constraint with appropriate sets for indexing. More...
 
MP_constraintoperator() (const MP_index_exp &i1=MP_index_exp::getEmpty(), const MP_index_exp &i2=MP_index_exp::getEmpty(), const MP_index_exp &i3=MP_index_exp::getEmpty(), const MP_index_exp &i4=MP_index_exp::getEmpty(), const MP_index_exp &i5=MP_index_exp::getEmpty())
 
 operator int ()
 
virtual ~MP_constraint ()
 
double price (int i1=0, int i2=0, int i3=0, int i4=0, int i5=0) const
 
void coefficients (GenerateFunctor &f)
 
int row_number () const
 
MP_constraintsuch_that (const MP_boolean &b)
 
void insertVariables (std::set< MP_variable * > &v)
 
void operator= (const Constraint &v)
 
void display (std::string s="") const
 
- Public Member Functions inherited from flopc::RowMajor
int size () const
 
- Public Member Functions inherited from flopc::Named
std::string getName () const
 
void setName (const std::string &n)
 

Public Attributes

 __pad0__: MP_constraint(s1)
 
- Public Attributes inherited from flopc::MP_constraint
MP_modelM
 
int offset
 
MP_expression left
 
MP_expression right
 
Sense_enum sense
 

Private Attributes

CoreNodeBasep2node
 pointer to the node the constr. belongs to More...
 
int constrIndx
 

Additional Inherited Members

- 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 Attributes inherited from flopc::RowMajor
int size1
 
int size2
 
int size3
 
int size4
 
int size5
 
int size_
 

Detailed Description

class for a stochastic (node-based) constraint

Basically, this is identical to the MP_constraint, but it registers itself with the scenario-tree node and adds a new value() method.

So far, we implement only variables indexed on simple one-dimensional sets.

Note that constraints are different from variables, since we cannot get a pointer to one constraint in the set (one row). This is because if we have an MP_constraint C, then

Definition at line 170 of file corenode_base.hpp.

Member Function Documentation

FlopSmiEx::CoreNodeBase::SP_constraint::p2node ( CoreNodeBase::p2activeNode  )
FlopSmiEx::CoreNodeBase::SP_constraint::constrIndx ( static_cast< int >  p2node->all_constraints.size())
inline

Definition at line 177 of file corenode_base.hpp.

Member Data Documentation

CoreNodeBase* FlopSmiEx::CoreNodeBase::SP_constraint::p2node
private

pointer to the node the constr. belongs to

Definition at line 172 of file corenode_base.hpp.

int FlopSmiEx::CoreNodeBase::SP_constraint::constrIndx
private

Definition at line 173 of file corenode_base.hpp.

FlopSmiEx::CoreNodeBase::SP_constraint::__pad0__

Definition at line 176 of file corenode_base.hpp.


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