benchmark_problems
benchmark_problems
BenchmarkProblem
Bases: ABC
description
abstractmethod
classmethod
Return single-line description of this benchmark problem.
supported_params
abstractmethod
classmethod
Return a dictionary of supported parameters for this benchmark problem, as (param_name, param_description) key-value pairs in a dict.
get_example_parameters
abstractmethod
classmethod
Return a dictionary of example acceptable parameter values for this benchmark problem, as (param_name, example_value) key-value pairs in a dict.
get_problem_dimensions
abstractmethod
classmethod
Returns problem dimensions as (d, n, k, m, n_con_indices)-tuple for this benchmark problem, given the provided parameters. These dimensions can be indicative (especially n_con_indices), if they are stochastic. Main goal of this method is to get an idea of dimensions without needing to create the full problem instance.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
kwargs
|
parameters passed to create_problem_instance() for which we want to know resulting dimensions. |
{}
|
BenchmarkProblemFactory
Factory class for conveniently constructing MaxDivProblem instances for benchmarking purposes.
This class makes all registered (and discovered) BenchmarkProblem subclasses available (see show_all) and allows creating corresponding MaxDivProblem instances by name & parameter values (see create_problem).
construct_problem
classmethod
Create and return an instance of MaxDivProblem for the benchmark problem with the given name, using the provided parameters as needed.
get_problem_dimensions
classmethod
Get problem dimensions as (d, n, k, m, n_con_indices)-tuple for the benchmark problem with the given name, using the provided parameters as needed.