GPRidge v1.0.0
GPR-accelerated saddle point searches on potential energy surfaces
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
ActiveGPPotential.h
Go to the documentation of this file.
1
// SPDX-License-Identifier: MIT
2
// Copyright (c) gpridge developers
3
// See LICENSE for details.
4
5
#ifndef GPR_POTENTIALS_ACTIVEGPPOTENTIAL_H_
6
#define GPR_POTENTIALS_ACTIVEGPPOTENTIAL_H_
7
8
#include <memory>
9
10
#include "
ActiveGP.h
"
11
#include "rgpot/Potential.hpp"
12
13
namespace
pot
{
14
38
class
ActiveGPPotential
final :
public
rgpot::PotentialBase {
39
public
:
40
using
Config
=
ActiveGPConfig
;
41
45
ActiveGPPotential
(std::shared_ptr<gpr::neb::ActiveLearningSession> session,
46
std::shared_ptr<rgpot::PotentialBase> oracle,
47
Config
config =
Config
());
48
51
std::tuple<double, rgpot::types::AtomMatrix, double>
operator()
(
52
const
rgpot::types::AtomMatrix& positions,
53
const
std::vector<int>& atmtypes,
54
const
std::array<std::array<double, 3>, 3>& box)
override
;
55
58
[[nodiscard]] std::uint64_t
modelState
() const noexcept
59
{
60
return
surrogate_.modelState();
61
}
62
63
[[nodiscard]]
long
oracleCalls
() const noexcept
64
{
65
return
surrogate_.oracleCalls();
66
}
67
68
[[nodiscard]]
long
trainingSize
() const noexcept
69
{
70
return
surrogate_.trainingSize();
71
}
72
74
void
incorporate
()
75
{
76
surrogate_.incorporate();
77
}
78
82
ActiveGP
&
surrogate
() noexcept
83
{
84
return
surrogate_;
85
}
86
87
private
:
88
std::shared_ptr<rgpot::PotentialBase> oracle_;
89
ActiveGP
surrogate_;
90
};
91
92
}
// namespace pot
93
94
#endif
ActiveGP.h
pot::ActiveGP
Definition
ActiveGP.h:55
pot::ActiveGPPotential::trainingSize
long trainingSize() const noexcept
Definition
ActiveGPPotential.h:68
pot::ActiveGPPotential::Config
ActiveGPConfig Config
Definition
ActiveGPPotential.h:40
pot::ActiveGPPotential::modelState
std::uint64_t modelState() const noexcept
Definition
ActiveGPPotential.h:58
pot::ActiveGPPotential::ActiveGPPotential
ActiveGPPotential(std::shared_ptr< gpr::neb::ActiveLearningSession > session, std::shared_ptr< rgpot::PotentialBase > oracle, Config config=Config())
Definition
ActiveGPPotential.cpp:58
pot::ActiveGPPotential::surrogate
ActiveGP & surrogate() noexcept
Definition
ActiveGPPotential.h:82
pot::ActiveGPPotential::operator()
std::tuple< double, rgpot::types::AtomMatrix, double > operator()(const rgpot::types::AtomMatrix &positions, const std::vector< int > &atmtypes, const std::array< std::array< double, 3 >, 3 > &box) override
Definition
ActiveGPPotential.cpp:72
pot::ActiveGPPotential::incorporate
void incorporate()
Host-declared incorporation boundary.
Definition
ActiveGPPotential.h:74
pot::ActiveGPPotential::oracleCalls
long oracleCalls() const noexcept
Definition
ActiveGPPotential.h:63
pot
Potential wrappers and the batched oracle interface.
Definition
ProblemSetUp.h:22
pot::ActiveGPConfig
Definition
ActiveGP.h:40
gpr
potentials
ActiveGPPotential.h
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf