KrisLibrary  1.0.0
LeastSquares.h
1 #ifndef OPTIMIZATION_LEAST_SQUARES_H
2 #define OPTIMIZATION_LEAST_SQUARES_H
3 
4 #include <KrisLibrary/math/matrix.h>
5 
6 namespace Optimization
7 {
8 using namespace Math;
9 
19 {
20  LeastSquares();
21  bool Solve(Vector& x) const;
22  bool SatisfiesInequalities(const Vector& x) const;
23  bool SatisfiesEqualities(const Vector& x,Real tol=Epsilon) const;
24  Real Objective(const Vector& x) const;
25  void Print(std::ostream& out) const;
26  void PrintStats(const Vector& x,std::ostream& out) const;
27 
28  Matrix A; Vector b;
29  Matrix Aeq; Vector beq;
30  Matrix Aineq; Vector bineq;
31  const Vector* initialPoint; //optional initial feasible point
32  int verbose;
33 };
34 
35 } //namespace Optimization
36 
37 #endif
Namespace for classes and functions in the Optimization package.
Definition: CSet.h:7
Contains all definitions in the Math package.
Definition: WorkspaceBound.h:12
A least-squares problem definition.
Definition: LeastSquares.h:18