utility
Various functions to help you handling linkages
The utility module provides various useful functions.
Created on Mon Jul 12 00:00:01 2021.
@author: HugoFara
- pylinkage.utility.kinematic_default_test(func, error_penalty)
Standard run for any linkage before a complete fitness evaluation.
This decorator makes a kinematic simulation, before passing the loci to the decorated function.
- Parameters:
func (callable) – Fitness function to be decorated.
error_penalty (float) – Penalty value for unbuildable linkage. Common values include float(‘inf’) and 0.
- pylinkage.utility.kinematic_maximization(func)
Standard run for any linkage before a complete fitness evaluation.
This decorator makes a kinematic simulation, before passing the loci to the decorated function. In case of error, the penalty value is -float(‘inf’)
- Parameters:
func (callable) – Fitness function to be decorated.
- pylinkage.utility.kinematic_minimization(func)
Standard run for any linkage before a complete fitness evaluation.
This decorator makes a kinematic simulation, before passing the loci to the decorated function. In case of error, the penalty value is float(‘inf’)
- Parameters:
func (callable) – Fitness function to be decorated.