We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f89e222 commit e812076Copy full SHA for e812076
openevolve/controller.py
@@ -136,6 +136,9 @@ async def run(
136
"""
137
max_iterations = iterations or self.config.max_iterations
138
139
+ # Define start_iteration before creating the initial program
140
+ start_iteration = self.database.last_iteration
141
+
142
# Initialize the database with the initial program
143
initial_program_id = str(uuid.uuid4())
144
@@ -155,7 +158,6 @@ async def run(
155
158
self.database.add(initial_program)
156
159
157
160
# Main evolution loop
- start_iteration = self.database.last_iteration
161
total_iterations = start_iteration + max_iterations
162
163
logger.info(
0 commit comments