funciona por favor

This commit is contained in:
Oscar Suescun Elizalde 2025-04-02 11:14:39 +02:00
parent b5f1482ec4
commit 934365877f
5 changed files with 21 additions and 22 deletions

View File

@ -12,6 +12,7 @@ def log(msg):
if __name__ == '__main__':
os.system('cls')
archivoEnsayos = "Ensayos.xlsx"
archivoCurvas = "PLACond.mdb"
material = "PLACond"
@ -55,8 +56,6 @@ if __name__ == '__main__':
error = vTension/E_obj
print(error)
error = np.mean(error)
log(f"El resultado de la iteración {iteration} es:")

View File

@ -56,7 +56,7 @@ def logica_offset(offset, error, errorObjetivo):
if error <= limSup and error >= limInf: return True, None
tasa_aprendizaje = 0.001
tasa_aprendizaje = 0.1
desviacion = error - 1
delta = abs(tasa_aprendizaje * np.tanh(desviacion))

View File

@ -1,4 +1,4 @@
Material BH characteristics 02/04/2025 11:02:32 11:02:32
Material BH characteristics 02/04/2025 11:14:06 11:14:06
Code:1 (Stator) Material: M800-50A
24
1 0 0
@ -28,24 +28,24 @@ Code:1 (Stator) Material: M800-50A
Code:2 (Rotor) Material: PLACond
19
1 0 0
2 31.9 4.008672226E-05
3 44.9 5.642300406E-05
4 67.3 8.457167423E-05
5 106 0.0001332035285
6 164 0.0002060884781
7 235 0.0002953097094
8 435 0.0005466371217
9 1109 0.001393610501
10 1813 0.002278282992
11 2802 0.003521097046
12 4054 0.005094406647
13 5592 0.007027114448
14 9711 0.0122032025
15 18500 0.02324778564
16 45000 0.05654866776
17 88491 0.1112010702
18 140000 0.1759291886
19 200000 0.2513274123
2 31.9 0.031788482
3 44.9 0.03180481828
4 67.3 0.03183296695
5 106 0.0318815988
6 164 0.03195448375
7 235 0.03204370498
8 435 0.0322950324
9 1109 0.03314200578
10 1813 0.03402667827
11 2802 0.03526949232
12 4054 0.03684280192
13 5592 0.03877550972
14 9711 0.04395159778
15 18500 0.05499618091
16 45000 0.08829706304
17 88491 0.1429494655
18 140000 0.2076775839
19 200000 0.2830758076
Code:3 (Shaft) No BH:
2
1 0 0