New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How is the number of totalBits, required, computed? #42
Labels
Comments
The four arguments of FloatingPointChromosome's constructor are:
|
What does it mean "if the maximum value is 998"? Do those values refer to
the possible values of input variables or the result of the objective
function? How are the required bits calculated for a floating point number?
I am asking because there are different approaches.
Thanks
…On Mon, Oct 22, 2018, 19:14 Diego Giacomelli ***@***.***> wrote:
The four arguments of FloatingPointChromosome's constructor are:
1. The minimum values of numbers inside the chromosome.
2. The maximum values of numbers inside the chromosome.
3. The total bits used to represent each number. For example, if your
maximum value is 998, so 10 bits is what you need.
GeneticSharp will warn you if you try to use a total bits that cannot hold
a number inside your floating point chromosome.
1. The number of fraction (scale or decimal) part of the number.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APznJtWeOotQ3JEw6CATLFk3QGF62qtTks5unaiggaJpZM4XyU8p>
.
|
It means the maximum number that a chromosome can represent (solution). |
So it is the input variables to the objective function and hence the number
of bits required is also a function of the fractionDigits specified in each
Chromosome, correct?
…On Tue, Oct 23, 2018 at 2:21 AM Diego Giacomelli ***@***.***> wrote:
It means the maximum number that a chromosome can represent (solution).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APznJmtp2BymPLClouTGYeWB82gLGoxBks5ungy9gaJpZM4XyU8p>
.
|
Correct. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using GeneticSharp, I started working on some optimizations in order to lower the computational power, required. For that purpose I try to lower the totalBits but it does not seem apparent how the required number bits is computed given
Can someone please comment on how the total number bits, required, are computed. Ideally I want to set the totalBits parameter as function of chosen precision and value range.
Thanks
The text was updated successfully, but these errors were encountered: