numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
num_collect::opt::concepts::optimizer Concept Reference

Concept of optimizers. More...

#include <num_collect/opt/concepts/optimizer.h>

Concept definition

template<typename T>
typename T::objective_function_type;
typename T::variable_type;
typename T::objective_function_type::variable_type,
typename T::variable_type>;
typename T::value_type;
typename T::objective_function_type::value_type,
typename T::value_type>;
requires requires(const typename T::objective_function_type& obj_fun) {
{ T{obj_fun} };
};
requires requires(const T& obj) {
{
obj.opt_variable()
} -> base::concepts::const_reference_of<typename T::variable_type>;
{
obj.opt_value()
} -> base::concepts::const_reference_of<typename T::value_type>;
{
obj.iterations()
} -> base::concepts::implicitly_convertible_to<index_type>;
{
obj.evaluations()
} -> base::concepts::implicitly_convertible_to<index_type>;
};
}
Concept of same types.
Definition same_as.h:35
Concept of objective functions in optimization.

Detailed Description

Concept of optimizers.

Template Parameters
TType.

Definition at line 37 of file optimizer.h.