User Activity

  • Modified a comment on discussion Library usage on Jenetics: Java Genetic Algorithm Library

    Does Jenetics even support fitness function with multiple parameters?? Trying to find the maxima with the following fitness function public static double func(double a, double b, double c) { // f(a, b, c) = 3 * cos(a)^4 + 4 * cos(b)^3 + c return 3 * Math.pow(Math.cos(a), 4) + 4 * Math.pow(Math.cos(b), 3) + c; } Is the following Codec.of correct??? final Codec<Double, DoubleGene> PARAM = Codecs.ofScalar(DoubleRange.of(1, Math.PI)); final Codec<Double, DoubleGene> CODEC = Codec.of( ISeq.of(PARAM, PARAM,...

  • Modified a comment on discussion Library usage on Jenetics: Java Genetic Algorithm Library

    Does Jenetics even support fitness function with multiple parameters?? Trying to find the maxima with the following fitness function public static double func(double a, double b, double c) { // f(a, b, c) = 3 * cos(a)^4 + 4 * cos(b)^3 + c return 3 * Math.pow(Math.cos(a), 4) + 4 * Math.pow(Math.cos(b), 3) + c; } Is the following Codec.of correct??? final Codec<Double, DoubleGene> PARAM = Codecs.ofScalar(DoubleRange.of(1, Math.PI)); final Codec<Double, DoubleGene> CODEC = Codec.of( ISeq.of(PARAM, PARAM,...

  • Modified a comment on discussion Library usage on Jenetics: Java Genetic Algorithm Library

    Does Jenetics even support fitness function with multiple parameters?? Trying to find the maxima of the following formula with the following fitness function public static double func(double a, double b, double c) { // f(a, b, c) = 3 * cos(a)^4 + 4 * cos(b)^3 + c return 3 * Math.pow(Math.cos(a), 4) + 4 * Math.pow(Math.cos(b), 3) + c; } Is the following Codec.of correct??? final Codec<Double, DoubleGene> PARAM = Codecs.ofScalar(DoubleRange.of(1, Math.PI)); final Codec<Double, DoubleGene> CODEC = Codec.of(...

  • Posted a comment on discussion Library usage on Jenetics: Java Genetic Algorithm Library

    Does Jenetics even support fitness function with multiple parameters?? I have the following fitness function public static double func(double a, double b, double c) { // f(a, b, c) = 3 * cos(a)^4 + 4 * cos(b)^3 + 2 sin(c)^2 * cos(c)^2 + 5 return 3 * Math.pow(Math.cos(a), 4) + 4 * Math.pow(Math.cos(b), 3) + 2 * Math.pow(Math.sin(c), 2) * Math.pow(Math.cos(c), 2) + 5; } Is the following Codec.of correct??? final Codec<Double, DoubleGene> PARAM = Codecs.ofScalar(DoubleRange.of(1, Math.PI)); final Codec<Double,...

View All

Personal Data

Username:
zollen
Joined:
2019-07-01 23:09:36

Projects

  • No projects to display.

Personal Tools