Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Different init_range #53

Closed Answered by ahmedfgad
itmamdiyar26 asked this question in Q&A
Discussion options

Mr Gad,
I have a problem I hope you can help me with this problem
I have 3 inputs, namely x,y,z and each input has a different starting and ending range
can this be done?
Thanks for your attention

You must be logged in to vote

Hi @itmamdiyar26,

This feature is already supported in PyGAD using the gene_space parameter.

Here is an example to have a range of discrete (integers only) values.

gene_space=[range(-5, 10), range(50, 70), range(3, 18)]

Read this for more information: https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#more-about-the-gene-space-parameter

Please ask if you have any questions.

Replies: 1 comment

Comment options

Hi @itmamdiyar26,

This feature is already supported in PyGAD using the gene_space parameter.

Here is an example to have a range of discrete (integers only) values.

gene_space=[range(-5, 10), range(50, 70), range(3, 18)]

Read this for more information: https://pygad.readthedocs.io/en/latest/README_pygad_ReadTheDocs.html#more-about-the-gene-space-parameter

Please ask if you have any questions.

You must be logged in to vote
0 replies
Answer selected by ahmedfgad
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested

AltStyle によって変換されたページ (->オリジナル) /