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

User defined function #65

Open
rbn19 opened this issue Feb 12, 2021 · 4 comments
Open

User defined function #65

rbn19 opened this issue Feb 12, 2021 · 4 comments

Comments

@rbn19
Copy link

rbn19 commented Feb 12, 2021

I am new to coding and I was wondering if it is possible to use the Evolopy framework with a user-defined function other than the benchmark functions. If so could you please kindly explain how that could be done?

@RaneemQaddoura
Copy link
Collaborator

You just need to do the following:

  1. Add your function to the 'benchmark.py' file
  2. Add the function (name, lower bound, upper bound, and dimension) to 'getFunctionDetails' function at the 'benchmark.py' file
  3. Add the function name to the 'objectivefunc' list at 'example.py' file

Hope this helps

@RaneemQaddoura
Copy link
Collaborator

Please watch this video for an illustration of how to add a function to the framework:
https://www.youtube.com/watch?v=CGFRbbR4vvI

@xRotor
Copy link

xRotor commented Oct 8, 2021

Is there now way to make using your framework for non benchmark functions more convinient?

@RaneemQaddoura
Copy link
Collaborator

You can create any function you'd like that needs to be optimized, does not need to be a benchmark function.
You can find an illustration in the following video:
https://youtu.be/CGFRbbR4vvI

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

No branches or pull requests

3 participants