numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
optimizer.h
Go to the documentation of this file.
1/*
2 * Copyright 2021 MusicScience37 (Kenta Kabashima)
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
20#pragma once
21
28
30
36template <typename T>
38 typename T::objective_function_type;
40
41 typename T::variable_type;
43 typename T::objective_function_type::variable_type,
44 typename T::variable_type>;
45
46 typename T::value_type;
48 typename T::objective_function_type::value_type,
49 typename T::value_type>;
50
51 requires requires(const typename T::objective_function_type& obj_fun) {
52 { T{obj_fun} };
53 };
54
55 requires requires(const T& obj) {
56 {
57 obj.opt_variable()
59
60 {
61 obj.opt_value()
63
64 {
65 obj.iterations()
67
68 {
69 obj.evaluations()
71 };
72};
73
74} // namespace num_collect::opt::concepts
Concept of types implicitly convertible from the given type.
Concept of same types.
Definition same_as.h:35
Concept of objective functions in optimization.
Definition of const_reference_of concept.
Definition of implicitly_convertible_to concept.
Definition of index_type type.
Definition of iterative_solver concept.
Definition of objective_function concept.
Definition of same_as concept.