Skip to content

NelderMead i not defined error #23

@GustavWahl

Description

@GustavWahl

Hi,

I'm encountering an error where i is not defined with Nelder-Mead function:

Think the issue lies in the shouldReduce part

` if (shouldReduce) {
// if we don't contract here, we're done
if (sigma >= 1) break;

            // do a reduction
            for (i = 1; i < simplex.length; ++i) {
                weightedSum(simplex[i], 1 - sigma, simplex[0], sigma, simplex[i]);
                simplex[i].fx = f(simplex[i]);
            }
        }`

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