GQCP
Loading...
Searching...
No Matches
MinimizationEnvironment.hpp
Go to the documentation of this file.
1// This file is part of GQCG-GQCP.
2//
3// Copyright (C) 2017-2020 the GQCG developers
4//
5// GQCG-GQCP is free software: you can redistribute it and/or modify
6// it under the terms of the GNU Lesser General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// GQCG-GQCP is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU Lesser General Public License for more details.
14//
15// You should have received a copy of the GNU Lesser General Public License
16// along with GQCG-GQCP. If not, see <http://www.gnu.org/licenses/>.
17
18#pragma once
19
20
23
24
25namespace GQCP {
26
27
33template <typename _Scalar>
35 public OptimizationEnvironment<VectorX<_Scalar>> {
36
37public:
38 using Scalar = _Scalar;
39
40
41public:
42 VectorFunction<Scalar> gradient_function; // a callable function that produces the gradient of the scalar function, evaluated at the given variables
43 MatrixFunction<Scalar> hessian_function; // a callable function that produces the Hessian of the scalar function, evaluated at the given variables
44
45 std::deque<double> function_values; // values for the evaluated scalar function (often a sort of 'cost' function)
46
47
48public:
49 /*
50 * CONSTRUCTORS
51 */
52
61 OptimizationEnvironment<VectorX<_Scalar>>(initial_guess),
64};
65
66
67} // namespace GQCP
Definition: Matrix.hpp:47
Definition: MinimizationEnvironment.hpp:35
MatrixFunction< Scalar > hessian_function
Definition: MinimizationEnvironment.hpp:43
_Scalar Scalar
Definition: MinimizationEnvironment.hpp:38
std::deque< double > function_values
Definition: MinimizationEnvironment.hpp:45
VectorFunction< Scalar > gradient_function
Definition: MinimizationEnvironment.hpp:42
MinimizationEnvironment(const VectorX< _Scalar > &initial_guess, const VectorFunction< Scalar > &gradient_function, const MatrixFunction< Scalar > &hessian_function)
Definition: MinimizationEnvironment.hpp:60
Definition: OptimizationEnvironment.hpp:33
Definition: BaseOneElectronIntegralBuffer.hpp:25
std::function< VectorX< Scalar >(const VectorX< Scalar > &)> VectorFunction
Definition: Matrix.hpp:485
std::function< MatrixX< Scalar >(const VectorX< Scalar > &)> MatrixFunction
Definition: Matrix.hpp:488