Skip to content

[BUG]: Value below optimum in CEC2017F9 #44

Description

@mbienkowsk

Description of the bug

as per the title

Steps To Reproduce

package version: 1.0.1

minimal repro:

    fun = cec2017.F92017(ndim=10)
    x = [
        28.65134357093416,
        79.89267547797499,
        55.14337860489706,
        -57.019180636897296,
        -41.90935633243056,
        73.93139548679916,
        -99.03857772878108,
        66.30462801394798,
        65.34292892651949,
        -5.497987795962517,
    ]
    print(f"Opfunu's global minimum of F9: {fun.f_global}")
    print(f"value for given x: {fun.evaluate(x)}")
    x_opt = fun.f_shift
    print(f"opfunu's minimal input: {x_opt}")
    print(f"value for opfunu's minimum input: {fun.evaluate(x_opt)}")

output:

Opfunu's global minimum of F9: 900.0
value for given x: -163.41502728126488
opfunu's minimal input: [-24.85625428   0.93425322  21.99393031  51.98676726 -18.40259266
 -12.37483856  16.08833668  -3.32547974 -51.33798956  42.40954301]
value for opfunu's minimum input: 900.0

Additional Information

No response

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions