numerical-collection-cpp 0.10.0
A collection of algorithms in numerical analysis implemented in C++
Loading...
Searching...
No Matches
opt/adaptive_diagonal_curves.cpp

Example to use adaptive_diagonal_curves class.

/*
* Copyright 2021 MusicScience37 (Kenta Kabashima)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <Eigen/Core>
#include "../configure_logging.h"
auto main() -> int {
configure_logging(100); // NOLINT
optimizer(num_prob_collect::opt::shekel_function(5)); // NOLINT
// NOLINTNEXTLINE
optimizer.init(Eigen::Vector4d::Zero(), Eigen::Vector4d::Constant(10.0));
optimizer.max_evaluations(10000); // NOLINT
optimizer.min_rate_imp(1e-4); // NOLINT
optimizer.solve();
}
Definition of dividing_rectangles class.
Class of adaptive diagonal curves (ADC) method sergeyev2006 for optimization.
Class of Shekel function in 4 dimensions.
Definition of shekel_function class.