PIPS-NLP
sInterfaceCallbacks.h
Go to the documentation of this file.
1 /* PIPS-IPM *
2  * Author: Cosmin G. Petra *
3  * (C) 2012 Argonne National Laboratory. See Copyright Notification. */
4 
5 #ifndef NLPSTOCHINTERFACE_CALLBACKS
6 #define NLPSTOCHINTERFACE_CALLBACKS
7 
8 #include "stochasticInput.hpp"
9 #include "sDriver.h"
10 
22 {
23  public:
26 
27  void go();
28 
29  double getObjective() const;
30  //solverState getStatus();
31 
32  void setPrimalTolerance(double val);
33  void setDualTolerance(double val);
34 
35  std::vector<double> getFirstStagePrimalColSolution() const;
36  std::vector<double> getSecondStagePrimalColSolution(int scen) const;
37  std::vector<double> getFirstStageDualColSolution() const;
38  std::vector<double> getSecondStageDualColSolution(int scen) const;
39  //more get methods to follow here
40 
41  protected:
42  //count the number eq and ineq
43  void getNum1stStgEqIneq(int& my, int &mz);
44  void getNum2ndStgEqIneq(int scens, int& my, int &mz);
45 
47 
48  void loadData();
49 };
50 
51 #endif
void getNum2ndStgEqIneq(int scens, int &my, int &mz)
Definition: sInterfaceCallbacks.C:128
std::vector< double > getFirstStagePrimalColSolution() const
~sInterfaceCallbacks()
Definition: sInterfaceCallbacks.C:52
void setDualTolerance(double val)
Definition: stochasticInput.hpp:32
std::vector< double > getFirstStageDualColSolution() const
void getNum1stStgEqIneq(int &my, int &mz)
Definition: sInterfaceCallbacks.C:113
double getObjective() const
std::vector< double > getSecondStageDualColSolution(int scen) const
sInterfaceCallbacks(stochasticInput &in)
Definition: sInterfaceCallbacks.C:45
Definition: sInterfaceCallbacks.h:21
StochInputTree * inputTree
Definition: sInterfaceCallbacks.h:46
void setPrimalTolerance(double val)
void loadData()
Definition: sInterfaceCallbacks.C:60
Definition: StochInputTree.h:30
void go()
Definition: sInterfaceCallbacks.C:100
std::vector< double > getSecondStagePrimalColSolution(int scen) const