OPTK  0.1.2
Toolkit for global optimisation algorithms
Functions
core.hpp File Reference

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)
 

Detailed Description

This file contains definitions for 'core' logic.

Copyright (C) 2020 Maxime Robeyns maxim.nosp@m.erob.nosp@m.eyns@.nosp@m.gmai.nosp@m.l.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.

Function Documentation

◆ core_loop()

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.

Parameters
benchA pointer to the benchmark to be run
optA pointer to the optimiser to run on the benchmark
max_iterThe maximum number of iterations; default 20