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

#include <amplGenStochInput.hpp>

Inheritance diagram for amplGenStochInput:
stochasticInput amplGenStochInput_AddSlack

Public Member Functions

 amplGenStochInput ()
 
 amplGenStochInput (const std::string &datarootname, int overrideScenarioNumber=0, MPI_Comm comm=MPI_COMM_WORLD)
 
 ~amplGenStochInput ()
 
virtual int nScenarios ()
 
virtual int nFirstStageVars ()
 
virtual int nFirstStageCons ()
 
virtual int nSecondStageVars (int scen)
 
virtual int nSecondStageCons (int scen)
 
virtual std::vector< double > getFirstStageColLB ()
 
virtual std::vector< double > getFirstStageColUB ()
 
virtual std::vector< double > getFirstStageObj ()
 
virtual std::vector< std::string > getFirstStageColNames ()
 
virtual std::vector< double > getFirstStageRowLB ()
 
virtual std::vector< double > getFirstStageRowUB ()
 
virtual std::vector< std::string > getFirstStageRowNames ()
 
virtual bool isFirstStageColInteger (int col)
 
virtual std::vector< double > getSecondStageColLB (int scen)
 
virtual std::vector< double > getSecondStageColUB (int scen)
 
virtual std::vector< double > getSecondStageObj (int scen)
 
virtual std::vector< std::string > getSecondStageColNames (int scen)
 
virtual std::vector< double > getSecondStageRowLB (int scen)
 
virtual std::vector< double > getSecondStageRowUB (int scen)
 
virtual std::vector< std::string > getSecondStageRowNames (int scen)
 
virtual double scenarioProbability (int scen)
 
virtual bool isSecondStageColInteger (int scen, int col)
 
virtual CoinPackedMatrix getFirstStageConstraints ()
 
virtual CoinPackedMatrix getSecondStageConstraints (int scen)
 
virtual CoinPackedMatrix getLinkingConstraints (int scen)
 
virtual CoinPackedMatrix getFirstStageHessian ()
 
virtual CoinPackedMatrix getSecondStageHessian (int scen)
 
virtual CoinPackedMatrix getSecondStageCrossHessian (int scen)
 
virtual bool scenarioDimensionsEqual ()
 
virtual bool onlyBoundsVary ()
 
virtual bool allProbabilitiesEqual ()
 
virtual bool continuousRecourse ()
 
virtual void doNetworkPart (const int scen, AmplSuffix *amplSuffix)
 
- Public Member Functions inherited from stochasticInput
virtual ~stochasticInput ()
 
virtual std::vector< double > getLinkRowLB ()
 
virtual std::vector< double > getLinkRowUB ()
 
virtual CoinPackedMatrix getLinkMatrix (int nodeid)
 

Protected Member Functions

virtual void loadLocalNLdata (int scen)
 
virtual void splitMatrices (const int scen)
 
 amplGenStochInput (const amplGenStochInput &)
 
amplGenStochInputoperator= (const amplGenStochInput &)
 
virtual void getRowMap (const int scen)
 
virtual void getJacGoffMap (const int scen)
 
virtual int nLinkCons ()
 
virtual int nLinkECons ()
 
virtual int nLinkICons ()
 

Protected Attributes

bool dimsEqual
 
bool haveRootNL
 
double ObjScale
 
int nScenarios_
 
int nFirstStageVars_
 
int nFirstStageCons_
 
std::vector< int > nSecondStageVars_
 
std::vector< int > nSecondStageCons_
 
std::vector< int * > LocGloVarIdx
 
std::vector< std::map< int, int > > LocLocVarMap
 
std::vector< std::map< int, int > > LocGloVarMap
 
std::vector< std::map< int, int > > LocWmatJacGoffMap
 
std::vector< std::map< int, int > > LocTmatJacGoffMap
 
std::vector< std::map< int, int > > LocQAmatHesGoffMap
 
std::vector< std::map< int, int > > LocQWmatHesGoffMap
 
std::vector< std::map< int, int > > LocQTmatHesGoffMap
 
std::vector< int > decisionVarDim
 
std::vector< int * > schurVarConIDinNL
 
std::vector< int * > NR_partIDX_var
 
std::vector< int * > NR_partIDX_con
 
int mype_
 
std::vector< AmplData_NLlocalData
 
AmplData_NL firstStageData
 
std::vector< ASL_pfgh * > asl_i
 
ASL_pfgh * asl_0
 
CoinPackedMatrix Amat
 
CoinPackedMatrix QAmat
 
std::vector< CoinPackedMatrix > Tmat
 
std::vector< CoinPackedMatrix > QTmat
 
std::vector< CoinPackedMatrix > Wmat
 
std::vector< CoinPackedMatrix > QWmat
 
int nnzEqJac1st
 
int nnzIneqJac1st
 
int * amplRowMap1st
 
std::vector< int > nnzEqJac2nd
 
std::vector< int > nnzIneqJac2nd
 
std::vector< int * > amplRowMap2nd
 
int nnzA1st
 
int nnzC1st
 
std::vector< int > nnzA2nd
 
std::vector< int > nnzC2nd
 
int nnzALink1st
 
int nnzCLink1st
 
int nnzALoc1st
 
int nnzCLoc1st
 
std::vector< int > nnzALink2nd
 
std::vector< int > nnzCLink2nd
 
std::vector< int > nnzALoc2nd
 
std::vector< int > nnzCLoc2nd
 
std::map< int, int > JacALinkGoff1st
 
std::map< int, int > JacCLinkGoff1st
 
std::map< int, int > JacALocGoff1st
 
std::map< int, int > JacCLocGoff1st
 
std::vector< std::map< int, int > > JacALinkGoff2nd
 
std::vector< std::map< int, int > > JacCLinkGoff2nd
 
std::vector< std::map< int, int > > JacALocGoff2nd
 
std::vector< std::map< int, int > > JacCLocGoff2nd
 
int nnzQ1st
 
std::vector< int > nnzQ2nd
 
std::vector< int > nnzQCross2nd
 
std::vector< int > starts1stSt
 

Friends

class sNlpInfoFromNL
 

Additional Inherited Members

- Public Attributes inherited from stochasticInput
std::string datarootname
 
int useInputDate
 

Constructor & Destructor Documentation

amplGenStochInput::amplGenStochInput ( )
inline
amplGenStochInput::amplGenStochInput ( const std::string &  datarootname,
int  overrideScenarioNumber = 0,
MPI_Comm  comm = MPI_COMM_WORLD 
)
amplGenStochInput::~amplGenStochInput ( )
amplGenStochInput::amplGenStochInput ( const amplGenStochInput )
protected

Member Function Documentation

virtual bool amplGenStochInput::allProbabilitiesEqual ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual bool amplGenStochInput::continuousRecourse ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

void amplGenStochInput::doNetworkPart ( const int  scen,
AmplSuffix amplSuffix 
)
virtual

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<double> amplGenStochInput::getFirstStageColLB ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<std::string> amplGenStochInput::getFirstStageColNames ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<double> amplGenStochInput::getFirstStageColUB ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual CoinPackedMatrix amplGenStochInput::getFirstStageConstraints ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual CoinPackedMatrix amplGenStochInput::getFirstStageHessian ( )
inlinevirtual

Reimplemented from stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<double> amplGenStochInput::getFirstStageObj ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<double> amplGenStochInput::getFirstStageRowLB ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<std::string> amplGenStochInput::getFirstStageRowNames ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<double> amplGenStochInput::getFirstStageRowUB ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

void amplGenStochInput::getJacGoffMap ( const int  scen)
protectedvirtual

Reimplemented in amplGenStochInput_AddSlack.

virtual CoinPackedMatrix amplGenStochInput::getLinkingConstraints ( int  scen)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

void amplGenStochInput::getRowMap ( const int  scen)
protectedvirtual

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<double> amplGenStochInput::getSecondStageColLB ( int  scen)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<std::string> amplGenStochInput::getSecondStageColNames ( int  scen)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<double> amplGenStochInput::getSecondStageColUB ( int  scen)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual CoinPackedMatrix amplGenStochInput::getSecondStageConstraints ( int  scen)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual CoinPackedMatrix amplGenStochInput::getSecondStageCrossHessian ( int  scen)
inlinevirtual

Reimplemented from stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual CoinPackedMatrix amplGenStochInput::getSecondStageHessian ( int  scen)
inlinevirtual

Reimplemented from stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<double> amplGenStochInput::getSecondStageObj ( int  scen)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<double> amplGenStochInput::getSecondStageRowLB ( int  scen)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<std::string> amplGenStochInput::getSecondStageRowNames ( int  scen)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual std::vector<double> amplGenStochInput::getSecondStageRowUB ( int  scen)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual bool amplGenStochInput::isFirstStageColInteger ( int  col)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual bool amplGenStochInput::isSecondStageColInteger ( int  scen,
int  col 
)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

void amplGenStochInput::loadLocalNLdata ( int  scen)
protectedvirtual

Reimplemented in amplGenStochInput_AddSlack.

virtual int amplGenStochInput::nFirstStageCons ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual int amplGenStochInput::nFirstStageVars ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual int amplGenStochInput::nLinkCons ( )
inlineprotectedvirtual

Reimplemented from stochasticInput.

virtual int amplGenStochInput::nLinkECons ( )
inlineprotectedvirtual

Reimplemented from stochasticInput.

virtual int amplGenStochInput::nLinkICons ( )
inlineprotectedvirtual

Reimplemented from stochasticInput.

virtual int amplGenStochInput::nScenarios ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual int amplGenStochInput::nSecondStageCons ( int  scen)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual int amplGenStochInput::nSecondStageVars ( int  scen)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual bool amplGenStochInput::onlyBoundsVary ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

amplGenStochInput& amplGenStochInput::operator= ( const amplGenStochInput )
protected
virtual bool amplGenStochInput::scenarioDimensionsEqual ( )
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

virtual double amplGenStochInput::scenarioProbability ( int  scen)
inlinevirtual

Implements stochasticInput.

Reimplemented in amplGenStochInput_AddSlack.

void amplGenStochInput::splitMatrices ( const int  scen)
protectedvirtual

Reimplemented in amplGenStochInput_AddSlack.

Friends And Related Function Documentation

friend class sNlpInfoFromNL
friend

Member Data Documentation

CoinPackedMatrix amplGenStochInput::Amat
protected
int* amplGenStochInput::amplRowMap1st
protected
std::vector<int*> amplGenStochInput::amplRowMap2nd
protected
ASL_pfgh* amplGenStochInput::asl_0
protected
std::vector<ASL_pfgh*> amplGenStochInput::asl_i
protected
std::vector<int> amplGenStochInput::decisionVarDim
protected
bool amplGenStochInput::dimsEqual
protected
AmplData_NL amplGenStochInput::firstStageData
protected
bool amplGenStochInput::haveRootNL
protected
std::map<int, int> amplGenStochInput::JacALinkGoff1st
protected
std::vector<std::map<int, int> > amplGenStochInput::JacALinkGoff2nd
protected
std::map<int, int> amplGenStochInput::JacALocGoff1st
protected
std::vector<std::map<int, int> > amplGenStochInput::JacALocGoff2nd
protected
std::map<int, int> amplGenStochInput::JacCLinkGoff1st
protected
std::vector<std::map<int, int> > amplGenStochInput::JacCLinkGoff2nd
protected
std::map<int, int> amplGenStochInput::JacCLocGoff1st
protected
std::vector<std::map<int, int> > amplGenStochInput::JacCLocGoff2nd
protected
std::vector<AmplData_NL> amplGenStochInput::localData
protected
std::vector<int*> amplGenStochInput::LocGloVarIdx
protected
std::vector<std::map<int, int> > amplGenStochInput::LocGloVarMap
protected
std::vector<std::map<int, int> > amplGenStochInput::LocLocVarMap
protected
std::vector<std::map<int, int> > amplGenStochInput::LocQAmatHesGoffMap
protected
std::vector<std::map<int, int> > amplGenStochInput::LocQTmatHesGoffMap
protected
std::vector<std::map<int, int> > amplGenStochInput::LocQWmatHesGoffMap
protected
std::vector<std::map<int, int> > amplGenStochInput::LocTmatJacGoffMap
protected
std::vector<std::map<int, int> > amplGenStochInput::LocWmatJacGoffMap
protected
int amplGenStochInput::mype_
protected
int amplGenStochInput::nFirstStageCons_
protected
int amplGenStochInput::nFirstStageVars_
protected
int amplGenStochInput::nnzA1st
protected
std::vector<int> amplGenStochInput::nnzA2nd
protected
int amplGenStochInput::nnzALink1st
protected
std::vector<int> amplGenStochInput::nnzALink2nd
protected
int amplGenStochInput::nnzALoc1st
protected
std::vector<int> amplGenStochInput::nnzALoc2nd
protected
int amplGenStochInput::nnzC1st
protected
std::vector<int> amplGenStochInput::nnzC2nd
protected
int amplGenStochInput::nnzCLink1st
protected
std::vector<int> amplGenStochInput::nnzCLink2nd
protected
int amplGenStochInput::nnzCLoc1st
protected
std::vector<int> amplGenStochInput::nnzCLoc2nd
protected
int amplGenStochInput::nnzEqJac1st
protected
std::vector<int> amplGenStochInput::nnzEqJac2nd
protected
int amplGenStochInput::nnzIneqJac1st
protected
std::vector<int> amplGenStochInput::nnzIneqJac2nd
protected
int amplGenStochInput::nnzQ1st
protected
std::vector<int> amplGenStochInput::nnzQ2nd
protected
std::vector<int> amplGenStochInput::nnzQCross2nd
protected
std::vector<int*> amplGenStochInput::NR_partIDX_con
protected
std::vector<int*> amplGenStochInput::NR_partIDX_var
protected
int amplGenStochInput::nScenarios_
protected
std::vector<int> amplGenStochInput::nSecondStageCons_
protected
std::vector<int> amplGenStochInput::nSecondStageVars_
protected
double amplGenStochInput::ObjScale
protected
CoinPackedMatrix amplGenStochInput::QAmat
protected
std::vector<CoinPackedMatrix> amplGenStochInput::QTmat
protected
std::vector<CoinPackedMatrix> amplGenStochInput::QWmat
protected
std::vector<int*> amplGenStochInput::schurVarConIDinNL
protected
std::vector<int> amplGenStochInput::starts1stSt
protected
std::vector<CoinPackedMatrix> amplGenStochInput::Tmat
protected
std::vector<CoinPackedMatrix> amplGenStochInput::Wmat
protected

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