finish all refactoring

This commit is contained in:
wls2002
2024-02-21 15:41:08 +08:00
parent aac41a089d
commit 6970e6a6d5
44 changed files with 856 additions and 825 deletions

View File

@@ -1,19 +1,14 @@
from typing import Callable
from config import ProblemConfig
from core.state import State
from utils import State
class BaseProblem:
jitable = None
def __init__(self):
pass
def setup(self, randkey, state: State = State()):
"""initialize the state of the problem"""
raise NotImplementedError
pass
def evaluate(self, randkey, state: State, act_func: Callable, params):
"""evaluate one individual"""