|
OPTK
0.1.2
Toolkit for global optimisation algorithms
|
The main entrypoint to the application. More...
#include <optk/optk.hpp>Functions | |
| static error_t | parse_opt (int key, char *arg, struct argp_state *state) |
| static bool | validate_args (optk::arguments *args, optk::optimisers *opts, optk::benchmarks *bmks) |
| static optk::ctx_t * | do_setup (optk::arguments *args, optk::optimisers *opts, optk::benchmarks *bmks) |
| static void | do_teardown (optk::ctx_t *ctx) |
| int | main (int argc, char **argv) |
The main entrypoint to the application.
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.
|
static |
In this setup function we 'register' all the optimisation algorithms, as well as the bechmarks.
| args | The parsed command line arguments (with defaults set) |
| opts | The set of all registered optimisers OPTK knows about |
| bmks | The set of all registered benchmarks OPTK knows about |
|
static |
In this teardown function we free all memory allocated by the setup and during the program.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
The main function.
| argc | The number of arguments |
| argv | The argument vector |
|
static |
|
static |
1.8.13