|
OPTK
0.1.2
Toolkit for global optimisation algorithms
|
This file contains definitions for 'core' logic. More...
#include <cstring>#include <optk/types.hpp>#include <optk/benchmark.hpp>#include <optk/optimiser.hpp>Go to the source code of this file.
Functions | |
| void | optk::core_loop (optk::benchmark *bench, optk::optimiser *opt, double *trace, uint max_iter) |
This file contains definitions for 'core' logic.
Copyright (C) 2020 Maxime Robeyns maximerobeyns@gmail.com
Written for the ACRC, University of Bristol
Licensed under the Educational Community 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.osedu.org/licenses/ECL-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.
| void optk::core_loop | ( | optk::benchmark * | bench, |
| optk::optimiser * | opt, | ||
| double * | trace, | ||
| uint | max_iter = 20 |
||
| ) |
This performs the core optimisation loop. Given a benchmark and an optimiser, this function will first commuicate the benchmark's search space, and then iterate for up to max_iter iterations, generating new configurations, evaluating, and storing the results.
| bench | A pointer to the benchmark to be run |
| opt | A pointer to the optimiser to run on the benchmark |
| max_iter | The maximum number of iterations; default 20 |
1.8.13