also refactored BO to class/methods

This commit is contained in:
2026-07-13 15:10:45 +09:00
parent 31a2f88047
commit 2d5c3af7a0
3 changed files with 104 additions and 71 deletions
+21
View File
@@ -0,0 +1,21 @@
from abc import ABC, abstractmethod
class BOEngine(ABC):
name = None
def __init__(self, config):
self.config = config
self.state = None
@abstractmethod
def initialize(self):
pass
@abstractmethod
def ask(self):
pass
@abstractmethod
def tell(self, job_config, y_value):
pass