mirror of
https://github.com/ANL-CEEESA/LLEPE.git
synced 2025-12-06 01:48:53 -06:00
Edited parity plot to allow color to represent 3rd dimension. Still need to improve colorbar axis name.
This commit is contained in:
@@ -15,8 +15,10 @@ def optimizer(func, x_guess):
|
||||
ub = np.array([1e1])
|
||||
bounds = (lb, ub)
|
||||
options = {'c1': 1e-3, 'c2': 1e-3, 'w': 0.9}
|
||||
mini_optimizer = ps.single.global_best.GlobalBestPSO(n_particles=100, dimensions=1,
|
||||
options=options, bounds=bounds)
|
||||
mini_optimizer = ps.single.global_best.GlobalBestPSO(n_particles=100,
|
||||
dimensions=1,
|
||||
options=options,
|
||||
bounds=bounds)
|
||||
f_opt, x_opt = mini_optimizer.optimize(func, iters=100)
|
||||
|
||||
return x_opt
|
||||
|
||||
Reference in New Issue
Block a user