population based Metaheuristic usually consist such step:
Step 1: Start.
Step 2: Randomized initialization.
Step 3: Fitness evaluation of agents.
Step 4: calculation
Step 5: Updating agents’ position.
Step 8: Repeat steps 3 to 5 until the stop criterion is reached.
Step 9: Return best solution.
So it would be best to create an abstract type for it.
population based Metaheuristic usually consist such step:
Step 1: Start.
Step 2: Randomized initialization.
Step 3: Fitness evaluation of agents.
Step 4: calculation
Step 5: Updating agents’ position.
Step 8: Repeat steps 3 to 5 until the stop criterion is reached.
Step 9: Return best solution.
So it would be best to create an abstract type for it.