Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion openevolve/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ async def run(
"""
max_iterations = iterations or self.config.max_iterations

# Define start_iteration before creating the initial program
start_iteration = self.database.last_iteration

# Initialize the database with the initial program
initial_program_id = str(uuid.uuid4())

Expand All @@ -155,7 +158,6 @@ async def run(
self.database.add(initial_program)

# Main evolution loop
start_iteration = self.database.last_iteration
total_iterations = start_iteration + max_iterations

logger.info(
Expand Down