GeneticSharp is a fast, extensible, multi-platform and multithreading C# Genetic Algorithm library that simplifies the development of applications using Genetic Algorithms (GAs).
MIT License
1.26k
stars
330
forks
source link
Adding as constraint to GA instead of additional objective in FuncFitness #75
How can we add constraints to GeneticAlgorithm - in my objective function defined in FuncFitness: we return 1/ (g(x) + h(x)), where g and h are defined on the chromosome values. I wanted to simplify the objective to just return 1/(g(x)) and add h(x)=0 as an additional constraint outside of the objective function
Is it possible to do this and any examples for the same ?
Hi Diego
How can we add constraints to GeneticAlgorithm - in my objective function defined in FuncFitness: we return 1/ (g(x) + h(x)), where g and h are defined on the chromosome values. I wanted to simplify the objective to just return 1/(g(x)) and add h(x)=0 as an additional constraint outside of the objective function
Is it possible to do this and any examples for the same ?
Thank you