PIPS-NLP
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
sTreeCallbacks Class Reference

#include <sTreeCallbacks.h>

Inheritance diagram for sTreeCallbacks:
sTree

Public Member Functions

 sTreeCallbacks (StochInputTree *root)
 
 sTreeCallbacks (const std::vector< StochInputTree::StochInputNode * > &localscens)
 
 sTreeCallbacks (StochInputTree::StochInputNode *data_)
 
 ~sTreeCallbacks ()
 
StochSymMatrixcreateQ () const
 
StochVectorcreatec () const
 
StochVectorcreatexlow () const
 
StochVectorcreateixlow () const
 
StochVectorcreatexupp () const
 
StochVectorcreateixupp () const
 
StochGenMatrixcreateA () const
 
StochVectorcreateb () const
 
StochGenMatrixcreateC () const
 
StochVectorcreateclow () const
 
StochVectorcreateiclow () const
 
StochVectorcreatecupp () const
 
StochVectorcreateicupp () const
 
StochVectorcreateCeqBody () const
 
StochVectorcreateCineqBody () const
 
StochVectorcreateBarrGrad () const
 
int nx () const
 
int my () const
 
int mz () const
 
int id () const
 
void computeGlobalSizes ()
 
void loadLocalSizes ()
 
- Public Member Functions inherited from sTree
virtual ~sTree ()
 
int NumberOfChildren () const
 
void GetGlobalSizes (long long &NXOut, long long &MYOut, long long &MZOut)
 
void assignProcesses (MPI_Comm comm=MPI_COMM_WORLD)
 
void assignProcesses (MPI_Comm, std::vector< int > &)
 
void startMonitors ()
 
void startNodeMonitors ()
 
void stopMonitors ()
 
void stopNodeMonitors ()
 
void syncMonitoringData (std::vector< double > &vCPUTotal)
 
bool balanceLoad ()
 
bool balanceLoadPrecond ()
 
void getSyncInfo (int myRank, int &syncNeeded, int &sendOrRecv, int &toFromCPU)
 
void syncPrimalVector (StochVector &vec)
 
void syncDualYVector (StochVector &vec)
 
void syncDualZVector (StochVector &vec)
 
void syncStochVector (StochVector &vec)
 
void syncStochGenMatrix (StochGenMatrix &mat)
 
void syncStochSymMatrix (StochSymMatrix &mat)
 
virtual StochGenMatrixcreateA ()=0
 
virtual StochGenMatrixcreateC ()=0
 
StochVectornewPrimalVector () const
 
StochVectornewDualYVector () const
 
StochVectornewDualZVector () const
 
StochVectornewPrimalVectorEmpty () const
 
StochVectornewDualYVectorEmpty () const
 
StochVectornewDualZVectorEmpty () const
 
StochVectornewRhs ()
 
StochVectornewRhsXSYZ ()
 
int innerSize (int which)
 
virtual int mle () const
 
virtual int mli () const
 
virtual void get_FistStageSize (int &nx, int &my, int &mz)
 
double processLoad () const
 

Public Attributes

int NNZA
 
int NNZQ
 
int NNZB
 
int NNZC
 
int NNZD
 
- Public Attributes inherited from sTree
MPI_Comm commWrkrs
 
MPI_Comm myOldMpiComm
 
std::vector< int > myProcs
 
std::vector< int > myOldProcs
 
MPI_Comm commP2ZeroW
 
long long N
 
long long MY
 
long long MZ
 
int np
 
double IPMIterExecTIME
 
std::vector< sTree * > children
 
StochNodeResourcesMonitor resMon
 

Protected Member Functions

 sTreeCallbacks ()
 
- Protected Member Functions inherited from sTree
 sTree ()
 
void toMonitorsList (std::list< NodeExecEntry > &)
 
void fromMonitorsList (std::list< NodeExecEntry > &)
 
void computeNodeTotal ()
 
void saveCurrentCPUState ()
 
int isInVector (int elem, const std::vector< int > &vec)
 

Protected Attributes

StochInputTree::StochInputNodedata
 
StochInputTreetree
 
std::vector< StochInputTree::StochInputNode * > scens
 
StochInputTree::StochInputNodefakedata
 
std::vector< sTreeCallbacks * > real_children
 

Additional Inherited Members

- Static Public Attributes inherited from sTree
static int rankPrcnd =-1
 
static int rankZeroW = 0
 
static int rankMe =-1
 
static int numProcs =-1
 
static StochIterateResourcesMonitor iterMon
 

Detailed Description

This class creates objects when the problem is specified by C callbacks. Obsolete and present only to ensure compatibility with older versions of the code. The new sTree implementation, C++-like is sTreeImpl.

Constructor & Destructor Documentation

sTreeCallbacks::sTreeCallbacks ( StochInputTree root)
sTreeCallbacks::sTreeCallbacks ( const std::vector< StochInputTree::StochInputNode * > &  localscens)
sTreeCallbacks::sTreeCallbacks ( StochInputTree::StochInputNode data_)
sTreeCallbacks::~sTreeCallbacks ( )
sTreeCallbacks::sTreeCallbacks ( )
protected

Member Function Documentation

void sTreeCallbacks::computeGlobalSizes ( )
virtual

Implements sTree.

StochGenMatrix * sTreeCallbacks::createA ( ) const
StochVector * sTreeCallbacks::createb ( ) const
virtual

Implements sTree.

StochVector* sTreeCallbacks::createBarrGrad ( ) const
virtual

Implements sTree.

StochVector * sTreeCallbacks::createc ( ) const
virtual

Implements sTree.

StochGenMatrix * sTreeCallbacks::createC ( ) const
StochVector* sTreeCallbacks::createCeqBody ( ) const
virtual

Implements sTree.

StochVector* sTreeCallbacks::createCineqBody ( ) const
virtual

Implements sTree.

StochVector * sTreeCallbacks::createclow ( ) const
virtual

Implements sTree.

StochVector * sTreeCallbacks::createcupp ( ) const
virtual

Implements sTree.

StochVector * sTreeCallbacks::createiclow ( ) const
virtual

Implements sTree.

StochVector * sTreeCallbacks::createicupp ( ) const
virtual

Implements sTree.

StochVector * sTreeCallbacks::createixlow ( ) const
virtual

Implements sTree.

StochVector * sTreeCallbacks::createixupp ( ) const
virtual

Implements sTree.

StochSymMatrix * sTreeCallbacks::createQ ( ) const
virtual

Implements sTree.

StochVector * sTreeCallbacks::createxlow ( ) const
virtual

Implements sTree.

StochVector * sTreeCallbacks::createxupp ( ) const
virtual

Implements sTree.

int sTreeCallbacks::id ( ) const
virtual

Implements sTree.

void sTreeCallbacks::loadLocalSizes ( )
virtual

Implements sTree.

int sTreeCallbacks::my ( ) const
virtual

Implements sTree.

int sTreeCallbacks::mz ( ) const
virtual

Implements sTree.

int sTreeCallbacks::nx ( ) const
virtual

Implements sTree.

Member Data Documentation

StochInputTree::StochInputNode* sTreeCallbacks::data
protected
StochInputTree::StochInputNode* sTreeCallbacks::fakedata
protected
int sTreeCallbacks::NNZA
int sTreeCallbacks::NNZB
int sTreeCallbacks::NNZC
int sTreeCallbacks::NNZD
int sTreeCallbacks::NNZQ
std::vector<sTreeCallbacks*> sTreeCallbacks::real_children
protected
std::vector<StochInputTree::StochInputNode*> sTreeCallbacks::scens
protected
StochInputTree* sTreeCallbacks::tree
protected

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