suanPan
Loading...
Searching...
No Matches
BFGS.h
Go to the documentation of this file.
1
/*******************************************************************************
2
* Copyright (C) 2017-2025 Theodore Chang
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
******************************************************************************/
40
#ifndef BFGS_H
41
#define BFGS_H
42
43
#include <
Solver/Solver.h
>
44
#include <deque>
45
46
class
BFGS
final :
public
Solver
{
47
std::deque<vec> hist_s, hist_y;
48
std::deque<double> hist_rho;
49
std::vector<double> hist_alpha;
50
51
const
unsigned
max_hist;
52
53
public
:
54
explicit
BFGS
(
unsigned
= 0,
unsigned
= 20);
55
56
int
analyze
()
override
;
57
58
void
print
()
override
;
59
};
60
61
#endif
62
Solver.h
BFGS
The (L-)BFGS class defines a solver using BFGS iteration method.
Definition
BFGS.h:46
BFGS::analyze
int analyze() override
Definition
BFGS.cpp:29
BFGS::print
void print() override
Definition
BFGS.cpp:156
Solver
A Solver class defines solvers used in analysis.
Definition
Solver.h:38
Solver
BFGS.h
Generated by
1.9.8