com2014-template/model/my_model.py

20 lines
494 B
Python

import math
import random
from model.base_model import Model
class MyModel(Model):
def __init__(self, coords):
super().__init__(coords)
"""
Put your initialization here.
"""
self.log("Nothing to initialize in your model now")
def fit(self, max_it=1000, visualize=False):
"""
Put your iteration process here.
"""
self.log("Nothing happens in your model now")
return self.best_solution, self.fitness_list