Skip to content

EVOLVE-BLOCK-START and EVOLVE-BLOCK-END markers do not work #422

@xwqsl

Description

@xwqsl

I was optimizing a c program where a c file has many functions, I only want to optimize a single function in the file. I tried several marks to let openevolve optimize only the function. such as:

// #EVOLVE-BLOCK-START/END
// # EVOLVE-BLOCK-START/END
// EVOLVE-BLOCK-START/END
//EVOLVE-BLOCK-START/END

but all fails. I find openevolve will also change other functions in the file in the subsequent iterations.

I wonder how the EVOLVE-BLOCK-START/END is implemented in openevolve and how it can be used for program language other than python.
I find a function parse_evolve_blocks in openevolve/utils/code_utils.py. I think it may related to the feature but I don't see any calls to parse_evolve_blocks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions