pyfemtet 0.8.16__py3-none-any.whl → 0.8.17__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 +23 -1
- pyfemtet/opt/advanced_samples/excel_ui/(ref) original_project.femprj +0 -0
- pyfemtet/opt/advanced_samples/excel_ui/femtet-macro.xlsm +0 -0
- {pyfemtet-0.8.16.dist-info → pyfemtet-0.8.17.dist-info}/METADATA +1 -1
- {pyfemtet-0.8.16.dist-info → pyfemtet-0.8.17.dist-info}/RECORD +10 -10
- {pyfemtet-0.8.16.dist-info → pyfemtet-0.8.17.dist-info}/WHEEL +1 -1
- {pyfemtet-0.8.16.dist-info → pyfemtet-0.8.17.dist-info}/LICENSE +0 -0
- {pyfemtet-0.8.16.dist-info → pyfemtet-0.8.17.dist-info}/LICENSE_THIRD_PARTY.txt +0 -0
- {pyfemtet-0.8.16.dist-info → pyfemtet-0.8.17.dist-info}/entry_points.txt +0 -0
pyfemtet/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.8.
|
|
1
|
+
__version__ = "0.8.17"
|
pyfemtet/opt/_femopt_core.py
CHANGED
|
@@ -834,15 +834,37 @@ class History:
|
|
|
834
834
|
|
|
835
835
|
# 非劣解の計算
|
|
836
836
|
non_domi: list[bool] = []
|
|
837
|
+
non_domi_row: list[pd.Series] = []
|
|
837
838
|
for i, row in solution_set.iterrows():
|
|
838
839
|
non_domi.append((row > solution_set).product(axis=1).sum(axis=0) == 0)
|
|
840
|
+
non_domi_row.append(row)
|
|
841
|
+
print(solution_set)
|
|
842
|
+
|
|
843
|
+
# パレートフロントから裾解(他と同等というだけで残っている非劣解)を除く
|
|
844
|
+
true_non_domi = []
|
|
845
|
+
for i, row in enumerate(non_domi_row):
|
|
846
|
+
print('=====')
|
|
847
|
+
print(row) # その非劣解について
|
|
848
|
+
print('-----')
|
|
849
|
+
is_true_non_domi = []
|
|
850
|
+
for j, other_row in enumerate(non_domi_row):
|
|
851
|
+
if i == j:
|
|
852
|
+
continue
|
|
853
|
+
print(row < other_row) # 他の非劣解よりも優れている
|
|
854
|
+
print('-----')
|
|
855
|
+
print((row < other_row).sum()) # そのような目的がひとつでもある
|
|
856
|
+
is_true_non_domi.append((row < other_row).sum()) # ような解が
|
|
857
|
+
|
|
858
|
+
true_non_domi.append(all(is_true_non_domi)) # 全ての解に対し、ひとつの目的でも優れている
|
|
859
|
+
|
|
860
|
+
# non_domi に true_non_domi を反映する
|
|
839
861
|
|
|
840
862
|
# feasible も infeasible も一旦劣解にする
|
|
841
863
|
df['non_domi'] = False
|
|
842
864
|
|
|
843
865
|
# feasible のものに non_domi の評価結果を代入する
|
|
844
866
|
if len(non_domi) > 0:
|
|
845
|
-
df.loc[idx, 'non_domi'] =
|
|
867
|
+
df.loc[idx, 'non_domi'] = true_non_domi
|
|
846
868
|
|
|
847
869
|
def _calc_hypervolume(self, objectives, df):
|
|
848
870
|
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
pyfemtet/__init__.py,sha256=
|
|
1
|
+
pyfemtet/__init__.py,sha256=PT_XvBlwQd4u02vEgI5X087DusCd996RJt03glxbUCg,22
|
|
2
2
|
pyfemtet/_femtet_config_util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
pyfemtet/_femtet_config_util/autosave.py,sha256=dNirA9XGuFehas8_Jkj2BW9GOzMbPyhnt1WHcH_ObSU,2070
|
|
4
4
|
pyfemtet/_femtet_config_util/exit.py,sha256=0BWID-tjOkmZwmgPFkcJMkWW39voccz5ARIBWvZbHaw,1877
|
|
@@ -25,13 +25,13 @@ pyfemtet/logger/__init__.py,sha256=UOJ9n_U2xwdTrp0Xgg-N6geySxNzKqTBQlXsaH0kW_w,4
|
|
|
25
25
|
pyfemtet/logger/_impl.py,sha256=rsAd0HpmveOaLS39ucp3U2OcDhQMWjC5fnVGhbJtWVw,6375
|
|
26
26
|
pyfemtet/opt/__init__.py,sha256=wRR8LbEhb5I6MUgmnCgjB6-tqHlOVxDIo7yPkq0QbBs,758
|
|
27
27
|
pyfemtet/opt/_femopt.py,sha256=MSqSJzyD2sRYBNQAe0P5rpSvvVihOV2ugUa-hZyYnBA,40671
|
|
28
|
-
pyfemtet/opt/_femopt_core.py,sha256=
|
|
28
|
+
pyfemtet/opt/_femopt_core.py,sha256=DtbzqhZ5zjHpRYQ2EtS2YTHrduDBLeIosPWYOA2vLXM,40402
|
|
29
29
|
pyfemtet/opt/_test_utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
30
30
|
pyfemtet/opt/_test_utils/control_femtet.py,sha256=8oAl9y5V2n8Nnsgx_ebcZVzwFt1eI3swkdiKg6pg3-M,1085
|
|
31
31
|
pyfemtet/opt/_test_utils/hyper_sphere.py,sha256=nQhw8EIY0DwvcTqrbKhkxiITLZifr4-nG77E-_6ggmA,700
|
|
32
32
|
pyfemtet/opt/_test_utils/record_history.py,sha256=7V2LCZ8F985c_NNUVu-K7_2-p2mwG1lRMZhkYhSy_Dw,4356
|
|
33
|
-
pyfemtet/opt/advanced_samples/excel_ui/(ref) original_project.femprj,sha256=
|
|
34
|
-
pyfemtet/opt/advanced_samples/excel_ui/femtet-macro.xlsm,sha256=
|
|
33
|
+
pyfemtet/opt/advanced_samples/excel_ui/(ref) original_project.femprj,sha256=pxD5DWBpYyhly0QcbkKuhHuttOkxWfA4PTWp71teUVw,174390
|
|
34
|
+
pyfemtet/opt/advanced_samples/excel_ui/femtet-macro.xlsm,sha256=QGbhJQScHZKe1XwdDcdsvdY6mmibT1WDb80vyqns9fQ,131502
|
|
35
35
|
pyfemtet/opt/advanced_samples/excel_ui/pyfemtet-core.py,sha256=aF2TWXdbt7dnkeBqqVO6GvIExozjFp0mxx3BX8rpYNc,9879
|
|
36
36
|
pyfemtet/opt/advanced_samples/excel_ui/test-pyfemtet-core.cmd,sha256=r-Pa1Ng9sa6wfDqIhTf2BUDrN9rePWFymz7pmtBbvcQ,895
|
|
37
37
|
pyfemtet/opt/advanced_samples/restart/gal_ex13_parametric.femprj,sha256=iIHH1X-wWBqEYj4cFJXco73LCJXSrYBsSKOD0HxYu60,87599
|
|
@@ -150,9 +150,9 @@ pyfemtet/opt/visualization/result_viewer/.gitignore,sha256=ryvb4aqbbsHireHWlPQfx
|
|
|
150
150
|
pyfemtet/opt/visualization/result_viewer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
151
151
|
pyfemtet/opt/visualization/result_viewer/application.py,sha256=WcHBx_J5eNLKSaprpk9BGifwhO04oN8FiNGYTWorrXA,1691
|
|
152
152
|
pyfemtet/opt/visualization/result_viewer/pages.py,sha256=MZAjzbuq0toZrR-iJhElM3A12_jHVCTt65gz1kdNPbw,32193
|
|
153
|
-
pyfemtet-0.8.
|
|
154
|
-
pyfemtet-0.8.
|
|
155
|
-
pyfemtet-0.8.
|
|
156
|
-
pyfemtet-0.8.
|
|
157
|
-
pyfemtet-0.8.
|
|
158
|
-
pyfemtet-0.8.
|
|
153
|
+
pyfemtet-0.8.17.dist-info/LICENSE,sha256=LWUL5LlMGjSRTvsalS8_fFuwS4VMw18fJSNWFwDK8pc,1060
|
|
154
|
+
pyfemtet-0.8.17.dist-info/LICENSE_THIRD_PARTY.txt,sha256=8_9-cgzTpmeuCqItPZb9-lyAZcH2Qp9sZTU_hYuOZIQ,191
|
|
155
|
+
pyfemtet-0.8.17.dist-info/METADATA,sha256=1cpHFveSodbOcGqRw2Ill8btupTGMC_XAZRkAatotso,3560
|
|
156
|
+
pyfemtet-0.8.17.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
157
|
+
pyfemtet-0.8.17.dist-info/entry_points.txt,sha256=ZfYqRaoiPtuWqFi2_msccyrVF0LurMn-IHlYamAegZo,104
|
|
158
|
+
pyfemtet-0.8.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|