From 0e470959bea18fe80513f81fcb3f1ffabf6c62ce Mon Sep 17 00:00:00 2001 From: RookieCodings <63178326+RookieCodings@users.noreply.github.com> Date: Tue, 11 Oct 2022 00:11:51 +0800 Subject: [PATCH] mistake in sa example --- examples/demo_sa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/demo_sa.py b/examples/demo_sa.py index 4aca0ac..3b6e83a 100644 --- a/examples/demo_sa.py +++ b/examples/demo_sa.py @@ -34,7 +34,7 @@ sa_boltzmann = SABoltzmann(func=demo_func, x0=[1, 1, 1], T_max=1, T_min=1e-9, q=0.99, L=300, max_stay_counter=150) sa_boltzmann.run() -print('Boltzmann Simulated Annealing: best_x is ', sa_boltzmann.best_x, 'best_y is ', sa_fast.best_y) +print('Boltzmann Simulated Annealing: best_x is ', sa_boltzmann.best_x, 'best_y is ', sa_boltzmann.best_y) # %% @@ -43,7 +43,7 @@ sa_boltzmann = SABoltzmann(func=demo_func, x0=[1, 1, 1], T_max=1, T_min=1e-9, q=0.99, L=300, max_stay_counter=150, lb=-1, ub=[2, 3, 4]) sa_boltzmann.run() -print('Boltzmann Simulated Annealing with bounds: best_x is ', sa_boltzmann.best_x, 'best_y is ', sa_fast.best_y) +print('Boltzmann Simulated Annealing with bounds: best_x is ', sa_boltzmann.best_x, 'best_y is ', sa_boltzmann.best_y) # %% from sko.SA import SACauchy