Package_mango.hpp
Go to the documentation of this file.
1
// Copyright 2019, University of Maryland and the MANGO development team.
2
//
3
// This file is part of MANGO.
4
//
5
// MANGO is free software: you can redistribute it and/or modify it
6
// under the terms of the GNU Lesser General Public License as
7
// published by the Free Software Foundation, either version 3 of the
8
// License, or (at your option) any later version.
9
//
10
// MANGO is distributed in the hope that it will be useful, but
11
// WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
// Lesser General Public License for more details.
14
//
15
// You should have received a copy of the GNU Lesser General Public
16
// License along with MANGO. If not, see
17
// <https://www.gnu.org/licenses/>.
18
19
#ifndef MANGO_PACKAGE_MANGO_H
20
#define MANGO_PACKAGE_MANGO_H
21
22
#include "
Package.hpp
"
23
24
namespace
mango
{
25
26
class
Solver;
27
class
Least_squares_solver;
28
29
class
Package_mango
:
public
Package
{
30
private
:
31
//static double nlopt_objective_function(unsigned, const double*, double*, void*);
32
// // <algorithms>
33
// // This section was automatically generated by ./update_algorithms
34
// void levenberg_marquardt(Least_squares_solver *);
35
// void imfil(Solver *);
36
// // </algorithms>
37
38
public
:
39
void
optimize
(
Solver
*);
40
void
optimize_least_squares
(
Least_squares_solver
*);
41
};
42
43
class
Algorithm
{
44
public
:
45
virtual
void
solve
() = 0;
46
};
47
48
class
LeastSquaresAlgorithm
{
49
public
:
50
virtual
void
solve
() = 0;
51
};
52
}
53
54
#endif
mango::Package_mango
Definition:
Package_mango.hpp:29
mango::Package
Definition:
Package.hpp:29
mango::LeastSquaresAlgorithm::solve
virtual void solve()=0
mango::Least_squares_solver
Definition:
Least_squares_solver.hpp:28
mango::Package_mango::optimize_least_squares
void optimize_least_squares(Least_squares_solver *)
Definition:
optimize_least_squares_mango.cpp:29
mango::Package_mango::optimize
void optimize(Solver *)
Definition:
optimize_mango.cpp:27
mango::Algorithm
Definition:
Package_mango.hpp:43
mango::LeastSquaresAlgorithm
Definition:
Package_mango.hpp:48
mango
This C++ namespace contains everything related to MANGO.
Definition:
Imfil.hpp:7
mango::Algorithm::solve
virtual void solve()=0
mango::Solver
Definition:
Solver.hpp:31
Package.hpp