Skip to content

Bound constrain doesn't applied #72

@chchlts

Description

@chchlts

Hello, I am going to make optimization with your library. I defined tha bound but it seems that the solution given is out-of-bound. Do you have any suggestion what should I do to apply the bound. Here is my parameter settings.

lb.setZero();
    ub << 100.0, 200.0;

    optim::algo_settings_t settings;

    settings.de_settings.check_freq = 100;
    settings.vals_bound = true;
    settings.lower_bounds = lb;
    settings.upper_bounds = ub;
    settings.print_level = 1;
    settings.de_settings.n_pop = 1000;
    settings.de_settings.par_F = 1.0;
    settings.de_settings.n_gen = 2000;
    settings.de_settings.mutation_method = 2;

    settings.de_settings.initial_lb = lb;
    settings.de_settings.initial_ub = ub;

and the output was

de: solution to Ackley test: -2.22045e-16 -2.2084e-16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions