00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef ClpPredictorCorrector_H
00011 #define ClpPredictorCorrector_H
00012
00013 #include "ClpInterior.hpp"
00014
00036 class ClpPredictorCorrector : public ClpInterior {
00037
00038 public:
00039
00049 int solve();
00051
00054
00055
00056
00057
00058 double findStepLength( int phase);
00060 double findDirectionVector(const int phase);
00062 int createSolution();
00064
00065 double complementarityGap(int & numberComplementarityPairs,int & numberComplementarityItems,
00066 const int phase);
00068
00069 void setupForSolve(const int phase);
00071 void solveSystem(double * region1, double * region2,
00072 const double * region1In, const double * region2In,
00073 const double * saveRegion1, const double * saveRegion2,
00074 bool gentleRefine);
00076 bool checkGoodMove(const bool doCorrector,double & bestNextGap,
00077 bool allowIncreasingGap);
00079 bool checkGoodMove2(double move,double & bestNextGap,
00080 bool allowIncreasingGap);
00082
00083 int updateSolution(double nextGap);
00085 double affineProduct();
00087 void debugMove(int phase,double primalStep, double dualStep);
00089
00090 };
00091 #endif