:py:mod:`fragile.optimize.benchmarks` ===================================== .. py:module:: fragile.optimize.benchmarks Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: fragile.optimize.benchmarks.OptimBenchmark fragile.optimize.benchmarks.Sphere fragile.optimize.benchmarks.Rastrigin fragile.optimize.benchmarks.EggHolder fragile.optimize.benchmarks.StyblinskiTang fragile.optimize.benchmarks.Rosenbrock fragile.optimize.benchmarks.Easom fragile.optimize.benchmarks.HolderTable fragile.optimize.benchmarks.LennardJones Functions ~~~~~~~~~ .. autoapisummary:: fragile.optimize.benchmarks.sphere fragile.optimize.benchmarks.rastrigin fragile.optimize.benchmarks.eggholder fragile.optimize.benchmarks.styblinski_tang fragile.optimize.benchmarks.rosenbrock fragile.optimize.benchmarks.easom fragile.optimize.benchmarks.holder_table fragile.optimize.benchmarks._lennard_fast fragile.optimize.benchmarks.lennard_jones Attributes ~~~~~~~~~~ .. autoapisummary:: fragile.optimize.benchmarks.ALL_BENCHMARKS .. py:function:: sphere(x) .. py:function:: rastrigin(x) .. py:function:: eggholder(x) .. py:function:: styblinski_tang(x) .. py:function:: rosenbrock(x) .. py:function:: easom(x) .. py:function:: holder_table(_x) .. py:function:: _lennard_fast(state) .. py:function:: lennard_jones(x) .. py:class:: OptimBenchmark(dims, function, **kwargs) Bases: :py:obj:`fragile.core.env.Function` Environment that represents an arbitrary mathematical function bounded in a given interval. .. py:attribute:: benchmark .. py:attribute:: best_state .. py:method:: get_bounds(dims) :staticmethod: :abstractmethod: .. py:class:: Sphere(dims, **kwargs) Bases: :py:obj:`OptimBenchmark` Environment that represents an arbitrary mathematical function bounded in a given interval. .. py:attribute:: benchmark .. py:method:: get_bounds(dims) :staticmethod: .. py:method:: best_state() :property: .. py:class:: Rastrigin(dims, **kwargs) Bases: :py:obj:`OptimBenchmark` Environment that represents an arbitrary mathematical function bounded in a given interval. .. py:attribute:: benchmark .. py:method:: get_bounds(dims) :staticmethod: .. py:method:: best_state() :property: .. py:class:: EggHolder(dims = None, **kwargs) Bases: :py:obj:`OptimBenchmark` Environment that represents an arbitrary mathematical function bounded in a given interval. .. py:attribute:: benchmark .. py:method:: get_bounds(dims=None) :staticmethod: .. py:method:: best_state() :property: .. py:class:: StyblinskiTang(dims, **kwargs) Bases: :py:obj:`OptimBenchmark` Environment that represents an arbitrary mathematical function bounded in a given interval. .. py:method:: get_bounds(dims) :staticmethod: .. py:method:: best_state() :property: .. py:method:: benchmark() :property: .. py:class:: Rosenbrock(dims, **kwargs) Bases: :py:obj:`OptimBenchmark` Environment that represents an arbitrary mathematical function bounded in a given interval. .. py:method:: get_bounds(dims) :staticmethod: .. py:method:: best_state() :property: .. py:method:: benchmark() :property: .. py:class:: Easom(dims = None, **kwargs) Bases: :py:obj:`OptimBenchmark` Environment that represents an arbitrary mathematical function bounded in a given interval. .. py:method:: get_bounds(dims) :staticmethod: .. py:method:: best_state() :property: .. py:method:: benchmark() :property: .. py:class:: HolderTable(dims = None, *args, **kwargs) Bases: :py:obj:`OptimBenchmark` Environment that represents an arbitrary mathematical function bounded in a given interval. .. py:method:: get_bounds(dims) :staticmethod: .. py:method:: best_state() :property: .. py:method:: benchmark() :property: .. py:class:: LennardJones(n_atoms = 10, dims=None, **kwargs) Bases: :py:obj:`OptimBenchmark` Environment that represents an arbitrary mathematical function bounded in a given interval. .. py:attribute:: minima .. py:attribute:: benchmark .. py:method:: get_bounds(dims) :staticmethod: .. py:method:: __reset(**kwargs) .. py:data:: ALL_BENCHMARKS