예제 #1
0
 def __init__(self, solution, acceptance=0.1, max_iter=10000,
              verbose=False):
     self.__solution = solution
     self.__acceptance = acceptance
     self.__max_iter = max_iter
     self.__verbose = verbose
     JobThread.__init__(self)
예제 #2
0
파일: build.py 프로젝트: neilswainston/lcr
    def __init__(self, query):
        JobThread.__init__(self)

        self._query = query
        self._ice_client = ICEClient(query['ice']['url'],
                                     query['ice']['username'],
                                     query['ice']['password'],
                                     group_names=query['ice'].get(
                                         'groups', None))

        self._ice_ids = query['ice_ids']
        self._data = {}
예제 #3
0
 def __init__(self, solution,
              acceptance=0.01, max_iter=10000,
              r_temp=0.025, cooling_rate=2.5e-4,
              heartbeat=1, verbose=False):
     self.__solution = solution
     self.__acceptance = acceptance
     self.__max_iter = max_iter
     self.__r_temp = r_temp
     self.__cooling_rate = cooling_rate
     self.__verbose = verbose
     self.__heartbeat = heartbeat
     JobThread.__init__(self)
예제 #4
0
    def __init__(self, query):
        JobThread.__init__(self)

        self.__query = query
        self.__results = []
예제 #5
0
    def __init__(self, query):
        JobThread.__init__(self)

        self._query = query
        self._results = []