Skip to content
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

ptimization_speed #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

ptimization_speed #1

wants to merge 1 commit into from

Conversation

avengerandy
Copy link

Hi i am MazeR, i use your code to learn NSGA-II
your code is very appropriate for learning,
thanks a lot

here's some speed optimization about your code
the features are all same
just change some function to python built-in functions
like random.uniform, index and delete some slice([:]) that not necessary

the speed test on my computer
original about 5.9s
original(without print) about 5.1s
optimization_speed about 3.6s
optimization_speed(without print) about 2.8s

hope you will like : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant