def __init__(self, sim, steps=0, output_path=None, restart=False): Simulation.__init__(self, DryRun(), output_path=output_path, steps=steps, restart=restart) self.sim = sim
def __init__(self, backend, output_path=None, tolerance=None, steps=int(1e6)): """ Perform an optimization using the specified `backend` and optionally write output to `output_path`. This can be a file or directory path. Paths: to define output paths we rely on `output_path`, all other paths are defined based on it and on its base_path. """ Simulation.__init__(self, backend, output_path=output_path) self.steps = steps self.tolerance = tolerance self._check_interval = 1000