00001
00015 #ifndef _AugmentedForm_h
00016 #define _AugmentedForm_h
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #include "LinearProblem.h"
00031 #include "util.h"
00032
00033
00034
00035
00036
00037 class AugmentedForm
00038 {
00039 public:
00040
00041
00044 AugmentedForm(void);
00045
00053 AugmentedForm(const Matrix& A,
00054 const ColumnVector& b,
00055 const ColumnVector& c,
00056 const int actualVariables);
00057
00058
00063 AugmentedForm(const LinearProblem& problem);
00064
00065
00070 AugmentedForm(const AugmentedForm& from);
00071
00072
00075 ~AugmentedForm(void);
00076
00077
00078
00079
00080
00087 AugmentedForm& operator=(const AugmentedForm& from);
00088
00091 bool operator==(const AugmentedForm& right) const;
00092
00095 friend wxTextOutputStream& operator<<(wxTextOutputStream& os,
00096 const AugmentedForm& augmentedForm);
00097
00098
00099
00100
00103 const Matrix& A() const;
00104
00107 const ColumnVector& b() const;
00108
00111 const ColumnVector& c() const;
00112
00115 int ActualVariables() const;
00116
00119 int m() const;
00120
00123 int n() const;
00124
00125
00126 protected:
00127 private:
00128 Matrix mA;
00129 ColumnVector mb;
00130 ColumnVector mc;
00131 int mActualVariables;
00132 };
00133
00134
00135
00136
00137
00138
00139
00140 #endif // _AugmentedForm_h