OBOE 0.1
|
00001 // Copyright (c) 2004-2007 University of Geneva, HEC, Logilab 00002 // 00003 // OBOE is published under the Common Public License. 00004 // 00005 // Authors : 00006 // Nidhi Sawhney <nsawhney@yahoo.com> 00007 // The OBOE team 00008 // 00009 00010 #ifndef SOLUTION_H 00011 #define SOLUTION_H 00012 00017 #include "AccpmVector.h" 00018 00019 namespace Accpm 00020 { 00021 00026 class Solution { 00027 public: 00028 Solution() {}; 00029 virtual ~Solution() {}; 00030 }; 00031 class Manager; 00037 class NewtonSolution : public Solution { 00038 00039 public: 00040 NewtonSolution(int m = 0, int n = 0, int p = 0); 00041 ~NewtonSolution(); 00042 00043 void init(const Manager &manager); 00044 int warmStart(const Manager &manager); 00045 void output(std::ostream &os) const; 00046 void addMult(const NewtonSolution &sol, double alpha = 1.0); 00047 00048 AccpmVector _y; 00049 AccpmVector _s; 00050 AccpmVector _z; 00051 double _s0; 00052 double _zs; 00053 double _ss; 00054 00055 }; 00056 } 00057 #endif