numopt-js
    Preparing search index...

    Interface CmaEsResult

    Result returned by CMA-ES optimization.

    interface CmaEsResult {
        converged: boolean;
        finalCost: number;
        finalGradientNorm?: number;
        finalMaxStdDev: number;
        finalParameters: Float64Array;
        finalResidualNorm?: number;
        finalStepSize: number;
        functionEvaluations: number;
        iterations: number;
        parameters: Float64Array;
        populationSize: number;
        profiling?: {
            choleskyMs: number;
            costMs: number;
            samplingMs: number;
            totalMs: number;
            updateMs: number;
        };
        stopReason?: | "MAXITER"
        | "MAXFEVALS"
        | "FTARGET"
        | "TOLHISTFUN"
        | "TOLX"
        | "IPOP_MAX_RESTARTS";
    }

    Hierarchy (View Summary)

    Index
    converged: boolean

    Whether the algorithm converged successfully.

    finalCost: number

    Final cost (objective function value).

    finalGradientNorm?: number

    Final gradient norm (if applicable).

    finalMaxStdDev: number

    Maximum standard deviation across coordinates: max_i sqrt(C_ii) * σ. Useful for assessing the final search radius.

    finalParameters: Float64Array

    Final optimized parameter vector.

    finalResidualNorm?: number

    Final residual norm (for least squares problems). Available for algorithms that work with residual functions.

    finalStepSize: number

    Final step size σ.

    functionEvaluations: number

    Total number of objective function evaluations performed.

    iterations: number

    Number of iterations performed.

    parameters: Float64Array

    Final optimized parameter vector.

    Use finalParameters instead. This alias will be removed in a future release.

    populationSize: number

    Population size (λ) used during optimization.

    profiling?: {
        choleskyMs: number;
        costMs: number;
        samplingMs: number;
        totalMs: number;
        updateMs: number;
    }

    Optional profiling breakdown (milliseconds).

    stopReason?:
        | "MAXITER"
        | "MAXFEVALS"
        | "FTARGET"
        | "TOLHISTFUN"
        | "TOLX"
        | "IPOP_MAX_RESTARTS"

    Stop reason for the overall optimization run.