pyfemtet 0.5.2__py3-none-any.whl → 0.5.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pyfemtet might be problematic. Click here for more details.
- pyfemtet/__init__.py +1 -1
- pyfemtet/opt/_femopt_core.py +9 -3
- pyfemtet/opt/optimizer/_optuna_botorchsampler_parameter_constraint_helper.py +0 -1
- {pyfemtet-0.5.2.dist-info → pyfemtet-0.5.3.dist-info}/METADATA +1 -1
- {pyfemtet-0.5.2.dist-info → pyfemtet-0.5.3.dist-info}/RECORD +8 -8
- {pyfemtet-0.5.2.dist-info → pyfemtet-0.5.3.dist-info}/LICENSE +0 -0
- {pyfemtet-0.5.2.dist-info → pyfemtet-0.5.3.dist-info}/WHEEL +0 -0
- {pyfemtet-0.5.2.dist-info → pyfemtet-0.5.3.dist-info}/entry_points.txt +0 -0
pyfemtet/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.5.
|
|
1
|
+
__version__ = "0.5.3"
|
pyfemtet/opt/_femopt_core.py
CHANGED
|
@@ -8,13 +8,20 @@ import inspect
|
|
|
8
8
|
import ast
|
|
9
9
|
import csv
|
|
10
10
|
import ctypes
|
|
11
|
+
from packaging import version
|
|
11
12
|
|
|
12
13
|
# 3rd-party
|
|
13
14
|
import numpy as np
|
|
14
15
|
import pandas as pd
|
|
15
16
|
from scipy.stats.qmc import LatinHypercube
|
|
16
17
|
import optuna
|
|
17
|
-
|
|
18
|
+
if version.parse(optuna.version.__version__) < version.parse('4.0.0'):
|
|
19
|
+
from optuna._hypervolume import WFG
|
|
20
|
+
wfg = WFG()
|
|
21
|
+
compute_hypervolume = wfg.compute
|
|
22
|
+
else:
|
|
23
|
+
from optuna._hypervolume import wfg
|
|
24
|
+
compute_hypervolume = wfg.compute_hypervolume
|
|
18
25
|
from dask.distributed import Lock, get_client
|
|
19
26
|
|
|
20
27
|
# win32com
|
|
@@ -753,10 +760,9 @@ class History:
|
|
|
753
760
|
reference_point = r * (maximum - minimum) + minimum
|
|
754
761
|
|
|
755
762
|
#### hv 履歴の計算
|
|
756
|
-
wfg = WFG()
|
|
757
763
|
hvs = []
|
|
758
764
|
for i in range(n):
|
|
759
|
-
hv =
|
|
765
|
+
hv = compute_hypervolume(pareto_set[:i], reference_point)
|
|
760
766
|
if np.isnan(hv):
|
|
761
767
|
hv = 0
|
|
762
768
|
hvs.append(hv)
|
|
@@ -183,7 +183,6 @@ class NonlinearInequalityConstraints:
|
|
|
183
183
|
item = (lambda x: GeneralFunctionWithForwardDifference.apply(cns_botorch, x), True)
|
|
184
184
|
self._nonlinear_inequality_constraints.append(item)
|
|
185
185
|
|
|
186
|
-
|
|
187
186
|
def _filter_feasible_conditions(self, ic_batch):
|
|
188
187
|
# List to store feasible initial conditions
|
|
189
188
|
feasible_ic_list = []
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
pyfemtet/__init__.py,sha256=
|
|
1
|
+
pyfemtet/__init__.py,sha256=97UKrhrWEWbfgbWci_xZHK3UkIDLtNXohfmkwtTK25k,21
|
|
2
2
|
pyfemtet/core.py,sha256=3lqfBGJ5IuKz2Nqj5pRo7YQqKwx_0ZDL72u95Ur_1p0,1386
|
|
3
3
|
pyfemtet/dispatch_extensions.py,sha256=XVZajbjh7mb6NG4Hq8qff2TJWab75r4Hd59cIvCRsVg,16213
|
|
4
4
|
pyfemtet/logger.py,sha256=JYD0FvzijMS2NvZN7VT7vZA5hqtHEkvS93AHlIMDePw,2507
|
|
@@ -12,7 +12,7 @@ pyfemtet/message/locales/messages.pot,sha256=_gVMy6qaSU7Qu6zIY8KQizb1XpTZ0ijLKbn
|
|
|
12
12
|
pyfemtet/message/messages.py,sha256=i0cOOV8NnBeT1gG-tqgnu_3dIym1hZG8Hzg38sh_Qeo,13187
|
|
13
13
|
pyfemtet/opt/__init__.py,sha256=MPrUWeLZLrJ-ApVckn8dsn3QmRH13aPzit5JgaoshG8,696
|
|
14
14
|
pyfemtet/opt/_femopt.py,sha256=_WxsnCk22UnnFPeGxVOrVDyWnuOOVUwRLvUL9xSxwuQ,26998
|
|
15
|
-
pyfemtet/opt/_femopt_core.py,sha256=
|
|
15
|
+
pyfemtet/opt/_femopt_core.py,sha256=mgu7qMxHW49tciNWYJq1DIJOX8lpAw8Yq8b6xafydH8,29851
|
|
16
16
|
pyfemtet/opt/_test_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
pyfemtet/opt/_test_utils/control_femtet.py,sha256=Oy2MmNS-LhUXF9rKLa8AXAfJhppIQI8Nha8LmEZflmk,1169
|
|
18
18
|
pyfemtet/opt/_test_utils/hyper_sphere.py,sha256=nQhw8EIY0DwvcTqrbKhkxiITLZifr4-nG77E-_6ggmA,700
|
|
@@ -28,7 +28,7 @@ pyfemtet/opt/interface/_femtet_with_sldworks.py,sha256=Ldr8Esa5xZ-D_E5uIXBTF2DHs
|
|
|
28
28
|
pyfemtet/opt/optimizer/__init__.py,sha256=wdz7PXkcSJ9Z2OHoegfGvYrnj_OAyU39BvDyiy3QnVw,407
|
|
29
29
|
pyfemtet/opt/optimizer/_base.py,sha256=lKCDGoAtOLwqNaP7qfqYJ69AHxq9YZVivTP14VHYxZU,12136
|
|
30
30
|
pyfemtet/opt/optimizer/_optuna.py,sha256=MojfB0oQCjSzS-hJNiD_Wn-vPDJbsMUydMq2ht6Ww9g,11570
|
|
31
|
-
pyfemtet/opt/optimizer/_optuna_botorchsampler_parameter_constraint_helper.py,sha256=
|
|
31
|
+
pyfemtet/opt/optimizer/_optuna_botorchsampler_parameter_constraint_helper.py,sha256=zqRsrpoLTXrbBo7F-D95LKnHQPwVvvBnCG3yh4VLv6g,12222
|
|
32
32
|
pyfemtet/opt/optimizer/_scipy.py,sha256=M3q25VuRazDzXUWC25z7hGbNq2Qg9158NjTSNBvi2pk,4347
|
|
33
33
|
pyfemtet/opt/optimizer/_scipy_scalar.py,sha256=YmErX4s_ywVIn861-D06d-TvDWi0rp843Jit3x80qtU,3202
|
|
34
34
|
pyfemtet/opt/parameter.py,sha256=YLE9lmYRaZA8isnTPJnbYXpUn6zsJFW4xg03QaSWey8,3950
|
|
@@ -108,8 +108,8 @@ pyfemtet/opt/visualization/wrapped_components/dbc.py,sha256=wzR1ZMOb4uwPNTMFn5up
|
|
|
108
108
|
pyfemtet/opt/visualization/wrapped_components/dcc.py,sha256=hcW7SR6VIMn4S4-JMyohvOzdc0Aw8A4chIeHqQEUbFU,17499
|
|
109
109
|
pyfemtet/opt/visualization/wrapped_components/html.py,sha256=sE2XHTDY1GvA1NW7y6SKWf-WglVXFKKvXhU9h3z53_g,95652
|
|
110
110
|
pyfemtet/opt/visualization/wrapped_components/str_enum.py,sha256=NZqbh2jNEAckvJyZv__MWeRs2F2Q-dkJCWo30rU2rrM,1383
|
|
111
|
-
pyfemtet-0.5.
|
|
112
|
-
pyfemtet-0.5.
|
|
113
|
-
pyfemtet-0.5.
|
|
114
|
-
pyfemtet-0.5.
|
|
115
|
-
pyfemtet-0.5.
|
|
111
|
+
pyfemtet-0.5.3.dist-info/LICENSE,sha256=sVQBhyoglGJUu65-BP3iR6ujORI6YgEU2Qm-V4fGlOA,1485
|
|
112
|
+
pyfemtet-0.5.3.dist-info/METADATA,sha256=_ATbM4hKPv5ozUxw09iyjZkvy6XqoWLoEOTe3qH5aBI,3287
|
|
113
|
+
pyfemtet-0.5.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
114
|
+
pyfemtet-0.5.3.dist-info/entry_points.txt,sha256=ZfYqRaoiPtuWqFi2_msccyrVF0LurMn-IHlYamAegZo,104
|
|
115
|
+
pyfemtet-0.5.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|