Implementing stop early behavior for DiscreteOpt#45
Implementing stop early behavior for DiscreteOpt#45eko-wibowo wants to merge 2 commits intoknakamura13:mainfrom
Conversation
|
@nkapila6 do you think we need something like this for the ContinuousOpt as well? I probably can modify the base class if that's the case. Thoughts? |
|
Hi @eko-wibowo, sorry I have been busy and haven't reviewed this. At first glance, can you share how your can_stop attribute will be used? Because iirc the opt problems have their own Maybe in your implementation, you're using this DiscreteOpt class directly? -- For your second question: Yes, would you like to implement this for continuous as well? Like NQueens, TSP, etc. For the future PR:
|
|
Ahh nevermind, I see now. It's only FlipFlop that has a separate can_stop, rest all problems are dictated through the Fitness Functions. Can you add the same for FlipFlop too? I will merge it in once it's updated there as well. Feel free to make a second PR for the continuous one! |
Addressing #38 I use this in A2 so the algorithms will stop after it reaches certain value for the cases that the target optimal value is known