Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a notebook demonstrating how to evolve objects #102

Merged
merged 2 commits into from
Jun 6, 2024

Commits on Mar 5, 2024

  1. Add a notebook demonstrating how to evolve objects

    This commit adds an example notebook which
    demonstrates how one can declare and solve an
    optimization problem that has its `dtype` set as
    `object`, and therefore has a custom solution
    structure.
    
    While working on the example notebook, one bug,
    and one genetic algorithm-related shortcoming
    have been identified and fixed.
    
    The bug was preventing one from instantiating a
    new `ObjectArray` with the help of
    `evotorch.tools.as_tensor(..., dtype=object)`.
    This commit fixes this bug.
    
    The shortcoming was as follows: when the user
    defined a custom mutation operator using a
    regular function, `GeneticAlgorithm` assumed
    that the regular function would return a new
    batch of solutions whose length is equal to the
    number of solutions it received. This was an
    unnecessary restriction, and therefore, got
    fixed with this commit.
    engintoklu committed Mar 5, 2024
    Configuration menu
    Copy the full SHA
    b74ca43 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2024

  1. Configuration menu
    Copy the full SHA
    d600411 View commit details
    Browse the repository at this point in the history