funciona por favor
This commit is contained in:
parent
b5f1482ec4
commit
934365877f
@ -12,6 +12,7 @@ def log(msg):
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
|
os.system('cls')
|
||||||
archivoEnsayos = "Ensayos.xlsx"
|
archivoEnsayos = "Ensayos.xlsx"
|
||||||
archivoCurvas = "PLACond.mdb"
|
archivoCurvas = "PLACond.mdb"
|
||||||
material = "PLACond"
|
material = "PLACond"
|
||||||
@ -55,8 +56,6 @@ if __name__ == '__main__':
|
|||||||
|
|
||||||
error = vTension/E_obj
|
error = vTension/E_obj
|
||||||
|
|
||||||
print(error)
|
|
||||||
|
|
||||||
error = np.mean(error)
|
error = np.mean(error)
|
||||||
|
|
||||||
log(f"El resultado de la iteración {iteration} es:")
|
log(f"El resultado de la iteración {iteration} es:")
|
||||||
|
@ -56,7 +56,7 @@ def logica_offset(offset, error, errorObjetivo):
|
|||||||
|
|
||||||
if error <= limSup and error >= limInf: return True, None
|
if error <= limSup and error >= limInf: return True, None
|
||||||
|
|
||||||
tasa_aprendizaje = 0.001
|
tasa_aprendizaje = 0.1
|
||||||
|
|
||||||
desviacion = error - 1
|
desviacion = error - 1
|
||||||
delta = abs(tasa_aprendizaje * np.tanh(desviacion))
|
delta = abs(tasa_aprendizaje * np.tanh(desviacion))
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -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
|
Code:1 (Stator) Material: M800-50A
|
||||||
24
|
24
|
||||||
1 0 0
|
1 0 0
|
||||||
@ -28,24 +28,24 @@ Code:1 (Stator) Material: M800-50A
|
|||||||
Code:2 (Rotor) Material: PLACond
|
Code:2 (Rotor) Material: PLACond
|
||||||
19
|
19
|
||||||
1 0 0
|
1 0 0
|
||||||
2 31.9 4.008672226E-05
|
2 31.9 0.031788482
|
||||||
3 44.9 5.642300406E-05
|
3 44.9 0.03180481828
|
||||||
4 67.3 8.457167423E-05
|
4 67.3 0.03183296695
|
||||||
5 106 0.0001332035285
|
5 106 0.0318815988
|
||||||
6 164 0.0002060884781
|
6 164 0.03195448375
|
||||||
7 235 0.0002953097094
|
7 235 0.03204370498
|
||||||
8 435 0.0005466371217
|
8 435 0.0322950324
|
||||||
9 1109 0.001393610501
|
9 1109 0.03314200578
|
||||||
10 1813 0.002278282992
|
10 1813 0.03402667827
|
||||||
11 2802 0.003521097046
|
11 2802 0.03526949232
|
||||||
12 4054 0.005094406647
|
12 4054 0.03684280192
|
||||||
13 5592 0.007027114448
|
13 5592 0.03877550972
|
||||||
14 9711 0.0122032025
|
14 9711 0.04395159778
|
||||||
15 18500 0.02324778564
|
15 18500 0.05499618091
|
||||||
16 45000 0.05654866776
|
16 45000 0.08829706304
|
||||||
17 88491 0.1112010702
|
17 88491 0.1429494655
|
||||||
18 140000 0.1759291886
|
18 140000 0.2076775839
|
||||||
19 200000 0.2513274123
|
19 200000 0.2830758076
|
||||||
Code:3 (Shaft) No BH:
|
Code:3 (Shaft) No BH:
|
||||||
2
|
2
|
||||||
1 0 0
|
1 0 0
|
||||||
|
Loading…
Reference in New Issue
Block a user