Skip to content

NelderMead i not defined error #23

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]);
            }
        }`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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