metaheuristic_designer.simple.random_search module#
Ready-to-run Random Search wrappers.
- random_search_binary(objfunc, encoding=None, rng=None, **kwargs)[source]#
Random Search for binary-coded vectors.
- Return type:
- Parameters:
- objfuncObjectiveFunc
The objective function to optimize.
- encodingEncoding, optional
Encoding; defaults to
TypeCastEncoding(int → bool).- rngRNGLike, optional
Random seed or generator.
- **kwargs
Forwarded to
Algorithm.
- Parameters:
objfunc (ObjectiveFunc)
encoding (Encoding | None)
rng (int | Generator | None)
- random_search_permutation(objfunc, encoding=None, rng=None, **kwargs)[source]#
Random Search for permutation-coded vectors.
- Return type:
- Parameters:
- objfuncObjectiveFunc
The objective function to optimize.
- encodingEncoding, optional
Encoding applied to the genotype.
- rngRNGLike, optional
Random seed or generator.
- **kwargs
Forwarded to
Algorithm.
- Parameters:
objfunc (ObjectiveFunc)
encoding (Encoding | None)
rng (int | Generator | None)
- random_search_discrete(objfunc, encoding=None, rng=None, **kwargs)[source]#
Random Search for integer-coded vectors.
- Return type:
- Parameters:
- objfuncObjectiveFunc
The objective function to optimize.
- encodingEncoding, optional
Encoding applied to the genotype.
- rngRNGLike, optional
Random seed or generator.
- **kwargs
Forwarded to
Algorithm.
- Parameters:
objfunc (ObjectiveFunc)
encoding (Encoding | None)
rng (int | Generator | None)
- random_search_real(objfunc, encoding=None, rng=None, **kwargs)[source]#
Random Search for real-coded vectors.
- Return type:
- Parameters:
- objfuncObjectiveFunc
The objective function to optimize.
- encodingEncoding, optional
Encoding applied to the genotype.
- rngRNGLike, optional
Random seed or generator.
- **kwargs
Forwarded to
Algorithm.
- Parameters:
objfunc (ObjectiveFunc)
encoding (Encoding | None)
rng (int | Generator | None)