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,...
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,...
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(...
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,...