Swimming Pool AI – Une idée simple, aux résultats simples.

Ici, on prend le temps. Particule Swarm n’est pas domptable, contrairement à l’IA qui optimise le résultat souhaité en fonction des besoins. L’idée n’est que de reproduire la nature et non pas de la modéliser, et encore moins de la copier.

Image associée

« Study of collective behavior in decentralized, self-organized systems. Originated from the study of colonies, or swarms of social organisms. Collective intelligence arises from interactions. »

Using SwarmOpsNumerical & Heuristic Optimization from http://www.hvass-labs.org

Optimizer: DE-Simple
Using following parameters:
NP = 186.0000
CR = 0.8493
F = 0.4818
Number of optimization runs: 150
Problem: pHProblem
Dimensionality: 5
Dim-factor: 200

CarbCalc: Equations assume H+, OH-, and other weak acids are negligible compared to CO3=, HCO3- (mathematically, this only gives an answer when Alk>0 and Alk/CO2<2.2)

Best feasible solution found:
co2 = 508.7127
alk = 502.5100
sal = 5.4688
DeltapH = 1.1000
pH found 7.6706 Error 0.1706 pCO2 found 401.01889

CarbCalc: Sal, ppt T_K, deg C T_K, deg K D, m P, bar (approx) CO2, µmol/kg Alk, µeq/kg

——– ——– ——– ——– ——– ———— ———–

CarbCalc: 5.46875 27.0 300.15 0.0 1.01325 508.7126631851857 502.51

CarbCalc: pH pCO2 CO2(aq) HCO3- CO3= Omega

—— —– —— —— —– ——

CarbCalc: 7.6706 401.01889 1.26008E-5 4.9022E-4 6.14448E-6 0.19384 calcite

CarbCalc: 120.01889 0.110624 aragonite

CarbCalc: frac. of tot CO2: 2.477007E-8 9.636501E-7 1.207849E-8

spoolai I/pK:  pK(T_K,P=1,S=0)  pK(T_K,P=1,S)   pK(T_K,P,S)

spoolai I/pK: 6.33973 6.08096 -0.01624 17.639281 6.08065 8.305196E-7 -6.08065 K_1

spoolai I/pK: 10.310442777067564 9.573004105333647 -0.006357512500000001 25.826631250000002 9.572548648255028 2.675785843585753E-10 -9.572548648255028 K_2

spoolai I/pK: 0.0 0.0 0.0 0.0 0.0 1.0 1.0 K_B

spoolai I/pK: 8.491393113748893 7.292917994424391 0.0017916000000000008 34.4392 7.292310743754429 5.101398571811314E-8 -7.292310743754429 Ks_calc

spoolai I/pK: 8.316753017130537 7.049264916833399 0.0017916000000000008 31.6392 7.048707038567662 8.939082828787178E-8 -7.048707038567662 Ks_arag

spoolai I/pK: 13.9289 13.51795 ? ? 13.51795 3.03424E-14 -13.51795 K_w

spoolai I/pK: ? ? 1.5027649 0.031422 -1.502764 α_0

spoolai I/cubic: -> -0.037
spoolai I/setup: -> -9.75781E-18
spoolai I/ion solutions:: 2.1348E-8 [H+]
spoolai I/ion solutions:: 7.67064 pH
spoolai I/ion solutions:: 5.0251E-4 Carb Alk
spoolai I/ion solutions:: 6.14448E-6 CO32-
spoolai I/ion solutions:: 4.90221E-4 HCO3-
spoolai I/ion solutions:: 1.260085E-5 H2CO3
spoolai I/ion solutions:: 4.01018892E-4 pCO2
spoolai I/ion solutions:: 0.0 B(OH)4-
spoolai I/ion solutions:: 0.0 B(OH)3
spoolai I/ion solutions:: 0.0 sumB
spoolai I/ion solutions:: 0.1938444 omega calcite
spoolai I/ion solutions:: 0.110624 omega aragonite

spoolai I/System.out: Result Statistics:
spoolai I/System.out: Feasible: 39.33% of solutions found.
spoolai I/System.out: Best Fitness: 6.57
spoolai I/System.out: Worst: 8.80
spoolai I/System.out: Mean: 7.46
spoolai I/System.out: Std.Dev.: 0.61
spoolai I/System.out: Iterations used per run:
spoolai I/System.out: Mean: 1000.00

IonicpK: 27.0 °C Salinity 5.46875 Ionic Strenght 0.10956
IonicpK: pKTSa1 6.05356
IonicpK: pKTSa1 10.179875
IonicpK: pKTNaCl1 6.09746
IonicpK: pKTNaCl1 9.83196

Ionic: log[H2CO3] = logKCO2(-1.4670+logPCO2(-3.408) = -1,46 + (-3,5) = -4,96 -4.875 mg/L [1.33343E-5]
Ionic: log[HCO3-] = logK1(6.0974686) + pH(7.5) + logH2CO3 = -6,35 + pH – 4,96 = -11,31 + pH -3.428591 mg/L [3.7274255E-4]
Ionic: log[CO3-2] = logK2(9.83196) + pH(7.5) + logHCO3- = -10,33 + pH -11,31 +pH = -21,64 + 2pH -6.1084662839196975 mg/L [7.789932E-7]
Ionic: log[Ca2+] = logKcal(9.75) – logCO3-2 = -8,37 – (-21,64+2pH) = 13,27 – 2pH -3.6415337 mg/L [2.282791E-4]
Ionic: [H+]^3 = (K1KCO2PCO2)^2*K2/2KCal = 10^-8,28 3.608591E-8 pH [7.44266
Ionic: OH- 2.7711644865111085E-6
Ionic: TAC/Alk(°F) 1.8851780760779706
Ionic: CO2 mg/L 0.5867095380459908
Ionic: CaCO3 mg/L 1.3334307682863427
Ionic: Redox E HOCl -441.2454598431671
Ionic: Redox E HOCl 738.3474994706154
Ionic: pKa 7.51021664393843
Ionic: Redox E0 H2O 0.4091045804270882
Time usage: 21,82 seconds