Skip to content

Commit c00cc4e

Browse files
committed
Update evaluator.py
update the known values based on scipy differential evolvution algo
1 parent b75b359 commit c00cc4e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/function_minimization/evaluator.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ def evaluate(program_path):
5555
Dictionary of metrics
5656
"""
5757
# Known global minimum (approximate)
58-
GLOBAL_MIN_X = -1.76
59-
GLOBAL_MIN_Y = -1.03
60-
GLOBAL_MIN_VALUE = -2.104
58+
GLOBAL_MIN_X = -1.704
59+
GLOBAL_MIN_Y = 0.678
60+
GLOBAL_MIN_VALUE = -1.519
6161

6262
try:
6363
# Load the program
@@ -216,9 +216,9 @@ def evaluate(program_path):
216216
def evaluate_stage1(program_path):
217217
"""First stage evaluation with fewer trials"""
218218
# Known global minimum (approximate)
219-
GLOBAL_MIN_X = float(-1.76)
220-
GLOBAL_MIN_Y = float(-1.03)
221-
GLOBAL_MIN_VALUE = float(-2.104)
219+
GLOBAL_MIN_X = float(-1.704)
220+
GLOBAL_MIN_Y = float(0.678)
221+
GLOBAL_MIN_VALUE = float(-1.519)
222222

223223
# Quick check to see if the program runs without errors
224224
try:

0 commit comments

Comments
 (0)