KrisLibrary
1.0.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
optimization
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
18
struct
LeastSquares
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
Optimization
Namespace for classes and functions in the Optimization package.
Definition:
CSet.h:7
Math::MatrixTemplate< Real >
Math
Contains all definitions in the Math package.
Definition:
WorkspaceBound.h:12
Optimization::LeastSquares
A least-squares problem definition.
Definition:
LeastSquares.h:18
Math::VectorTemplate< Real >
Generated by
1.8.11