EvoloPy icon indicating copy to clipboard operation
EvoloPy copied to clipboard

User defined function

Open rbn19 opened this issue 4 years ago • 4 comments

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?

rbn19 avatar Feb 12 '21 06:02 rbn19

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 avatar Feb 12 '21 15:02 RaneemQaddoura

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

RaneemQaddoura avatar Apr 17 '21 21:04 RaneemQaddoura

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

xRotor avatar Oct 08 '21 12:10 xRotor

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

RaneemQaddoura avatar Oct 08 '21 12:10 RaneemQaddoura