pyMachDM 0.1.0__tar.gz

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.
Files changed (89) hide show
  1. pymachdm-0.1.0/LICENSE +21 -0
  2. pymachdm-0.1.0/PKG-INFO +223 -0
  3. pymachdm-0.1.0/README.md +182 -0
  4. pymachdm-0.1.0/pyMachDM.egg-info/PKG-INFO +223 -0
  5. pymachdm-0.1.0/pyMachDM.egg-info/SOURCES.txt +87 -0
  6. pymachdm-0.1.0/pyMachDM.egg-info/dependency_links.txt +1 -0
  7. pymachdm-0.1.0/pyMachDM.egg-info/requires.txt +11 -0
  8. pymachdm-0.1.0/pyMachDM.egg-info/top_level.txt +1 -0
  9. pymachdm-0.1.0/pymachdm/ANN_weights/1.Weld_Beam_MachineDM.joblib +0 -0
  10. pymachdm-0.1.0/pymachdm/ANN_weights/10.DTLZ7_MachineDM.joblib +0 -0
  11. pymachdm-0.1.0/pymachdm/ANN_weights/11.DTLZ7_MachineDM.joblib +0 -0
  12. pymachdm-0.1.0/pymachdm/ANN_weights/12.MW8_MachineDM.joblib +0 -0
  13. pymachdm-0.1.0/pymachdm/ANN_weights/13.MW8_MachineDM.joblib +0 -0
  14. pymachdm-0.1.0/pymachdm/ANN_weights/14.WAVY_3Obj_MachineDM.joblib +0 -0
  15. pymachdm-0.1.0/pymachdm/ANN_weights/15.FLOW_3Obj_MachineDM.joblib +0 -0
  16. pymachdm-0.1.0/pymachdm/ANN_weights/16.DPF4_MachineDM.joblib +0 -0
  17. pymachdm-0.1.0/pymachdm/ANN_weights/17.DPF4_MachineDM.joblib +0 -0
  18. pymachdm-0.1.0/pymachdm/ANN_weights/18.River_MachineDM.joblib +0 -0
  19. pymachdm-0.1.0/pymachdm/ANN_weights/19.River_MachineDM.joblib +0 -0
  20. pymachdm-0.1.0/pymachdm/ANN_weights/2.OSY_2Obj_MachineDM.joblib +0 -0
  21. pymachdm-0.1.0/pymachdm/ANN_weights/20.C2DTLZ2_MachineDM.joblib +0 -0
  22. pymachdm-0.1.0/pymachdm/ANN_weights/21.C2DTLZ2_MachineDM.joblib +0 -0
  23. pymachdm-0.1.0/pymachdm/ANN_weights/22.Knee_5Obj_MachineDM.joblib +0 -0
  24. pymachdm-0.1.0/pymachdm/ANN_weights/23.WATER_MachineDM.joblib +0 -0
  25. pymachdm-0.1.0/pymachdm/ANN_weights/24.WATER_MachineDM.joblib +0 -0
  26. pymachdm-0.1.0/pymachdm/ANN_weights/25.Clutch_MachineDM.joblib +0 -0
  27. pymachdm-0.1.0/pymachdm/ANN_weights/26.Clutch_MachineDM.joblib +0 -0
  28. pymachdm-0.1.0/pymachdm/ANN_weights/27.NIMBUS_MachineDM.joblib +0 -0
  29. pymachdm-0.1.0/pymachdm/ANN_weights/28.NIMBUS_MachineDM.joblib +0 -0
  30. pymachdm-0.1.0/pymachdm/ANN_weights/29.DTLZ2_8Obj_MachineDM.joblib +0 -0
  31. pymachdm-0.1.0/pymachdm/ANN_weights/3.ZDT2_2Obj_MachineDM.joblib +0 -0
  32. pymachdm-0.1.0/pymachdm/ANN_weights/30.GAA_10Obj_MachineDM.joblib +0 -0
  33. pymachdm-0.1.0/pymachdm/ANN_weights/4.Crash_MachineDM.joblib +0 -0
  34. pymachdm-0.1.0/pymachdm/ANN_weights/4.ZDT3_2Obj_MachineDM.joblib +0 -0
  35. pymachdm-0.1.0/pymachdm/ANN_weights/4a.ZDT3_2Obj_MachineDM.joblib +0 -0
  36. pymachdm-0.1.0/pymachdm/ANN_weights/5.WAVY_2Obj_MachineDM.joblib +0 -0
  37. pymachdm-0.1.0/pymachdm/ANN_weights/6.WAVY_2Obj_MachineDM.joblib +0 -0
  38. pymachdm-0.1.0/pymachdm/ANN_weights/7.Carside_MachineDM.joblib +0 -0
  39. pymachdm-0.1.0/pymachdm/ANN_weights/8.Carside_MachineDM.joblib +0 -0
  40. pymachdm-0.1.0/pymachdm/ANN_weights/9.FLOWER_3Obj_MachineDM.joblib +0 -0
  41. pymachdm-0.1.0/pymachdm/__init__.py +71 -0
  42. pymachdm-0.1.0/pymachdm/ann/__init__.py +16 -0
  43. pymachdm-0.1.0/pymachdm/ann/multioutput_class.py +115 -0
  44. pymachdm-0.1.0/pymachdm/ann/multioutput_reg.py +110 -0
  45. pymachdm-0.1.0/pymachdm/imcdm_methods/__init__.py +25 -0
  46. pymachdm-0.1.0/pymachdm/imcdm_methods/guess_start.py +46 -0
  47. pymachdm-0.1.0/pymachdm/imcdm_methods/guess_sub.py +49 -0
  48. pymachdm-0.1.0/pymachdm/imcdm_methods/mod_guess_start.py +47 -0
  49. pymachdm-0.1.0/pymachdm/imcdm_methods/mod_guess_sub.py +47 -0
  50. pymachdm-0.1.0/pymachdm/imcdm_methods/nimbus_inter.py +64 -0
  51. pymachdm-0.1.0/pymachdm/imcdm_methods/nimbus_start.py +48 -0
  52. pymachdm-0.1.0/pymachdm/imcdm_methods/nimbus_sub.py +56 -0
  53. pymachdm-0.1.0/pymachdm/imcdm_methods/stem_start.py +47 -0
  54. pymachdm-0.1.0/pymachdm/imcdm_methods/stem_sub.py +51 -0
  55. pymachdm-0.1.0/pymachdm/imcdm_methods/stom_start.py +46 -0
  56. pymachdm-0.1.0/pymachdm/imcdm_methods/stom_sub.py +47 -0
  57. pymachdm-0.1.0/pymachdm/machdm_imcdm/__init__.py +4 -0
  58. pymachdm-0.1.0/pymachdm/machdm_imcdm/machdm_all.py +771 -0
  59. pymachdm-0.1.0/pymachdm/machdm_imcdm/machine_dm.py +124 -0
  60. pymachdm-0.1.0/pymachdm/pareto/__init__.py +3 -0
  61. pymachdm-0.1.0/pymachdm/pareto/pareto_analyser.py +162 -0
  62. pymachdm-0.1.0/pymachdm/plots/__init__.py +7 -0
  63. pymachdm-0.1.0/pymachdm/plots/plot_2d_scatter.py +57 -0
  64. pymachdm-0.1.0/pymachdm/plots/plot_3d_scatter.py +91 -0
  65. pymachdm-0.1.0/pymachdm/plots/plot_pcp.py +93 -0
  66. pymachdm-0.1.0/pymachdm/plots/plot_radviz.py +496 -0
  67. pymachdm-0.1.0/pymachdm/plots/plot_tsne.py +369 -0
  68. pymachdm-0.1.0/pymachdm/problems/__init__.py +4 -0
  69. pymachdm-0.1.0/pymachdm/problems/problem_factory.py +879 -0
  70. pymachdm-0.1.0/pymachdm/problems/symbolic_problem_factory.py +696 -0
  71. pymachdm-0.1.0/pymachdm/run_machdm.py +232 -0
  72. pymachdm-0.1.0/pymachdm/soo_aasf/__init__.py +7 -0
  73. pymachdm-0.1.0/pymachdm/soo_aasf/guess_asf.py +99 -0
  74. pymachdm-0.1.0/pymachdm/soo_aasf/mod_guess_asf.py +112 -0
  75. pymachdm-0.1.0/pymachdm/soo_aasf/nimbus_asf.py +104 -0
  76. pymachdm-0.1.0/pymachdm/soo_aasf/stem_asf.py +99 -0
  77. pymachdm-0.1.0/pymachdm/soo_aasf/stom_asf.py +81 -0
  78. pymachdm-0.1.0/pymachdm/utils/__init__.py +21 -0
  79. pymachdm-0.1.0/pymachdm/utils/auto_tradeoff_stom.py +34 -0
  80. pymachdm-0.1.0/pymachdm/utils/compute_lambda.py +71 -0
  81. pymachdm-0.1.0/pymachdm/utils/compute_lambda_with_g.py +85 -0
  82. pymachdm-0.1.0/pymachdm/utils/cos_sim.py +8 -0
  83. pymachdm-0.1.0/pymachdm/utils/generate_ref_dirs.py +6 -0
  84. pymachdm-0.1.0/pymachdm/utils/predict_best.py +45 -0
  85. pymachdm-0.1.0/pymachdm/utils/predict_best2.py +62 -0
  86. pymachdm-0.1.0/pymachdm/utils/predict_prob.py +67 -0
  87. pymachdm-0.1.0/pymachdm/utils/predict_rank.py +47 -0
  88. pymachdm-0.1.0/pyproject.toml +33 -0
  89. pymachdm-0.1.0/setup.cfg +4 -0
pymachdm-0.1.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Deepanshu Yadav
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,223 @@
1
+ Metadata-Version: 2.1
2
+ Name: pyMachDM
3
+ Version: 0.1.0
4
+ Summary: A Python library for machine-based decision-making in multi-objective optimization.
5
+ Author: Deepanshu Yadav
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 Deepanshu Yadav
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+ Requires-Python: >=3.8.1
28
+ Description-Content-Type: text/markdown
29
+ License-File: LICENSE
30
+ Requires-Dist: numpy==1.23.5
31
+ Requires-Dist: scipy==1.10.1
32
+ Requires-Dist: pandas==2.0.3
33
+ Requires-Dist: scikit-learn==1.3.2
34
+ Requires-Dist: tensorflow==2.12.0
35
+ Requires-Dist: keras==2.12.0
36
+ Requires-Dist: pymoo==0.6.1.2
37
+ Requires-Dist: sympy==1.13.3
38
+ Requires-Dist: matplotlib==3.7.5
39
+ Requires-Dist: joblib==1.4.2
40
+ Requires-Dist: Pillow==10.4.0
41
+
42
+ # pyMachDM
43
+
44
+ **A Python Library for Benchmarking interactive MCDM using Machine-based DM**
45
+
46
+ `pyMachDM` is a Python library for machine-based decision-making in multi-objective optimization. It provides implementations of Machine-DM procedures that use trained machine-learning models to emulate decision-making behavior and support the selection of preferred solutions from Pareto-optimal and non-Pareto-optimal regions.
47
+
48
+ The library aims to facilitate the application, evaluation, and benchmarking of machine-based interactive multi-criteria decision-making (iMCDM) procedures.
49
+
50
+ ## Features
51
+
52
+ - Machine-based implementations of multiple interactive MCDM procedures.
53
+ - Support for preference-guided exploration of multi-objective optimization problems.
54
+ - Integration with trained artificial neural network (ANN) models.
55
+ - Analysis and ranking of candidate solutions.
56
+ - Support for different optimization problems through problem factories.
57
+ - Integration with [pymoo](https://pymoo.org/) for multi-objective optimization.
58
+
59
+ ## Available Machine-DM Procedures
60
+
61
+ The library currently provides the following procedures:
62
+
63
+ | Procedure | Description |
64
+ |---|---|
65
+ | **GUESS** | Machine-based implementation of the GUESS procedure. |
66
+ | **STEM** | Machine-based implementation of the STEM procedure. |
67
+ | **STOM** | Machine-based implementation of the STOM procedure. |
68
+ | **NIMBUS** | Machine-based implementation of the NIMBUS procedure. |
69
+ | **MOD-GUESS** | Machine-based implementation of the modified GUESS procedure. |
70
+
71
+ ## Installation
72
+
73
+ `pyMachDM` can be installed directly from its GitHub repository using `pip`.
74
+
75
+ ### Prerequisites
76
+
77
+ - Python 3.9 or later
78
+ - Git
79
+
80
+ ### Install from GitHub
81
+
82
+ Open a terminal and execute:
83
+
84
+ ```bash
85
+ pip install git+https://github.com/DeepanshuIITM/pyMachDM.git
86
+ ```
87
+
88
+ ### Verify the installation
89
+
90
+ ```python
91
+ import pymachdm
92
+
93
+ print("pyMachDM installed successfully!")
94
+ ```
95
+
96
+ ### Update the package
97
+
98
+ To install the latest version from GitHub:
99
+
100
+ ```bash
101
+ pip install --upgrade --force-reinstall git+https://github.com/DeepanshuIITM/pyMachDM.git
102
+ ```
103
+
104
+ ## Quick Start
105
+
106
+ The following example demonstrates how to run Machine-DM using the GUESS procedure for the welded-beam design problem.
107
+
108
+ ```python
109
+ import numpy as np
110
+ from pymachdm import run_machdm
111
+ from pymachdm.problems.problem_factory import Welded_Beam
112
+
113
+ # Define the initial design
114
+ x_start = np.array([0.4, 0.4, 2.5, 9.0])
115
+
116
+ # Run Machine-DM
117
+ results = run_machdm(
118
+ problem_name="welded_beam",
119
+ method="guess",
120
+ x_start=x_start,
121
+ n_iter=15,
122
+ ga_pop=100,
123
+ ga_gen=200
124
+ )
125
+
126
+ # Display the results
127
+ print("Objective values:")
128
+ print(results["F"])
129
+
130
+ print("Decision variables:")
131
+ print(results["Param"])
132
+
133
+ print("Solution classes:")
134
+ print(results["Class"])
135
+
136
+ print("Preference values:")
137
+ print(results["Pref_Vals"])
138
+
139
+ print("Solution ranks:")
140
+ print(results["Ranks"])
141
+ ```
142
+
143
+ ## Running Different Machine-DM Procedures
144
+
145
+ The `method` argument determines which Machine-DM procedure is executed.
146
+
147
+ ```python
148
+ methods = ["guess", "stem", "stom", "nimbus", "mod_guess"]
149
+ ```
150
+
151
+ For example:
152
+
153
+ ```python
154
+ results = run_machdm(
155
+ problem_name="welded_beam",
156
+ method="nimbus",
157
+ x_start=x_start,
158
+ n_iter=15,
159
+ ga_pop=100,
160
+ ga_gen=200
161
+ )
162
+ ```
163
+
164
+ ## Repository Structure
165
+
166
+ ```text
167
+ pyMachDM/
168
+ │
169
+ ├── pymachdm/
170
+ │ ├── ann/
171
+ │ ├── machdm_imcdm/
172
+ │ ├── imcdm_methods/
173
+ │ ├── problems/
174
+ │ ├── pareto/
175
+ │ ├── utils/
176
+ │ └── ANN_weights/
177
+ │
178
+ ├── docs/
179
+ ├── mkdocs.yml
180
+ ├── requirements.txt
181
+ ├── pyproject.toml
182
+ ├── README.md
183
+ └── example_run.py
184
+ ```
185
+
186
+ ## Documentation
187
+
188
+ Detailed documentation, examples, and usage instructions are available at:
189
+
190
+ [pyMachDM Documentation](https://deepanshuiitm.github.io/pyMachDM/)
191
+
192
+ ## Dependencies
193
+
194
+ The library relies on scientific computing, machine learning, and multi-objective optimization packages, including:
195
+
196
+ - NumPy
197
+ - SciPy
198
+ - Pandas
199
+ - Scikit-learn
200
+ - TensorFlow and Keras
201
+ - pymoo
202
+ - SymPy
203
+ - Matplotlib
204
+ - Joblib
205
+
206
+ Dependencies are installed automatically when installing the package through the GitHub installation command, provided they are specified in the package configuration.
207
+
208
+ ## Citation
209
+
210
+ If you use `pyMachDM` in your research, please cite the associated research publications. Citation information will be provided here as the corresponding publications become available.
211
+
212
+ ## Author
213
+
214
+ **Deepanshu Yadav**
215
+
216
+ For further information, collaborations, or queries, please visit:
217
+
218
+ - [Personal Website](https://deepanshuiitm.github.io/webpage/)
219
+ - [GitHub Repository](https://github.com/DeepanshuIITM/pyMachDM)
220
+
221
+ ## License
222
+
223
+ Please refer to the repository's `LICENSE` file for licensing information.
@@ -0,0 +1,182 @@
1
+ # pyMachDM
2
+
3
+ **A Python Library for Benchmarking interactive MCDM using Machine-based DM**
4
+
5
+ `pyMachDM` is a Python library for machine-based decision-making in multi-objective optimization. It provides implementations of Machine-DM procedures that use trained machine-learning models to emulate decision-making behavior and support the selection of preferred solutions from Pareto-optimal and non-Pareto-optimal regions.
6
+
7
+ The library aims to facilitate the application, evaluation, and benchmarking of machine-based interactive multi-criteria decision-making (iMCDM) procedures.
8
+
9
+ ## Features
10
+
11
+ - Machine-based implementations of multiple interactive MCDM procedures.
12
+ - Support for preference-guided exploration of multi-objective optimization problems.
13
+ - Integration with trained artificial neural network (ANN) models.
14
+ - Analysis and ranking of candidate solutions.
15
+ - Support for different optimization problems through problem factories.
16
+ - Integration with [pymoo](https://pymoo.org/) for multi-objective optimization.
17
+
18
+ ## Available Machine-DM Procedures
19
+
20
+ The library currently provides the following procedures:
21
+
22
+ | Procedure | Description |
23
+ |---|---|
24
+ | **GUESS** | Machine-based implementation of the GUESS procedure. |
25
+ | **STEM** | Machine-based implementation of the STEM procedure. |
26
+ | **STOM** | Machine-based implementation of the STOM procedure. |
27
+ | **NIMBUS** | Machine-based implementation of the NIMBUS procedure. |
28
+ | **MOD-GUESS** | Machine-based implementation of the modified GUESS procedure. |
29
+
30
+ ## Installation
31
+
32
+ `pyMachDM` can be installed directly from its GitHub repository using `pip`.
33
+
34
+ ### Prerequisites
35
+
36
+ - Python 3.9 or later
37
+ - Git
38
+
39
+ ### Install from GitHub
40
+
41
+ Open a terminal and execute:
42
+
43
+ ```bash
44
+ pip install git+https://github.com/DeepanshuIITM/pyMachDM.git
45
+ ```
46
+
47
+ ### Verify the installation
48
+
49
+ ```python
50
+ import pymachdm
51
+
52
+ print("pyMachDM installed successfully!")
53
+ ```
54
+
55
+ ### Update the package
56
+
57
+ To install the latest version from GitHub:
58
+
59
+ ```bash
60
+ pip install --upgrade --force-reinstall git+https://github.com/DeepanshuIITM/pyMachDM.git
61
+ ```
62
+
63
+ ## Quick Start
64
+
65
+ The following example demonstrates how to run Machine-DM using the GUESS procedure for the welded-beam design problem.
66
+
67
+ ```python
68
+ import numpy as np
69
+ from pymachdm import run_machdm
70
+ from pymachdm.problems.problem_factory import Welded_Beam
71
+
72
+ # Define the initial design
73
+ x_start = np.array([0.4, 0.4, 2.5, 9.0])
74
+
75
+ # Run Machine-DM
76
+ results = run_machdm(
77
+ problem_name="welded_beam",
78
+ method="guess",
79
+ x_start=x_start,
80
+ n_iter=15,
81
+ ga_pop=100,
82
+ ga_gen=200
83
+ )
84
+
85
+ # Display the results
86
+ print("Objective values:")
87
+ print(results["F"])
88
+
89
+ print("Decision variables:")
90
+ print(results["Param"])
91
+
92
+ print("Solution classes:")
93
+ print(results["Class"])
94
+
95
+ print("Preference values:")
96
+ print(results["Pref_Vals"])
97
+
98
+ print("Solution ranks:")
99
+ print(results["Ranks"])
100
+ ```
101
+
102
+ ## Running Different Machine-DM Procedures
103
+
104
+ The `method` argument determines which Machine-DM procedure is executed.
105
+
106
+ ```python
107
+ methods = ["guess", "stem", "stom", "nimbus", "mod_guess"]
108
+ ```
109
+
110
+ For example:
111
+
112
+ ```python
113
+ results = run_machdm(
114
+ problem_name="welded_beam",
115
+ method="nimbus",
116
+ x_start=x_start,
117
+ n_iter=15,
118
+ ga_pop=100,
119
+ ga_gen=200
120
+ )
121
+ ```
122
+
123
+ ## Repository Structure
124
+
125
+ ```text
126
+ pyMachDM/
127
+ │
128
+ ├── pymachdm/
129
+ │ ├── ann/
130
+ │ ├── machdm_imcdm/
131
+ │ ├── imcdm_methods/
132
+ │ ├── problems/
133
+ │ ├── pareto/
134
+ │ ├── utils/
135
+ │ └── ANN_weights/
136
+ │
137
+ ├── docs/
138
+ ├── mkdocs.yml
139
+ ├── requirements.txt
140
+ ├── pyproject.toml
141
+ ├── README.md
142
+ └── example_run.py
143
+ ```
144
+
145
+ ## Documentation
146
+
147
+ Detailed documentation, examples, and usage instructions are available at:
148
+
149
+ [pyMachDM Documentation](https://deepanshuiitm.github.io/pyMachDM/)
150
+
151
+ ## Dependencies
152
+
153
+ The library relies on scientific computing, machine learning, and multi-objective optimization packages, including:
154
+
155
+ - NumPy
156
+ - SciPy
157
+ - Pandas
158
+ - Scikit-learn
159
+ - TensorFlow and Keras
160
+ - pymoo
161
+ - SymPy
162
+ - Matplotlib
163
+ - Joblib
164
+
165
+ Dependencies are installed automatically when installing the package through the GitHub installation command, provided they are specified in the package configuration.
166
+
167
+ ## Citation
168
+
169
+ If you use `pyMachDM` in your research, please cite the associated research publications. Citation information will be provided here as the corresponding publications become available.
170
+
171
+ ## Author
172
+
173
+ **Deepanshu Yadav**
174
+
175
+ For further information, collaborations, or queries, please visit:
176
+
177
+ - [Personal Website](https://deepanshuiitm.github.io/webpage/)
178
+ - [GitHub Repository](https://github.com/DeepanshuIITM/pyMachDM)
179
+
180
+ ## License
181
+
182
+ Please refer to the repository's `LICENSE` file for licensing information.
@@ -0,0 +1,223 @@
1
+ Metadata-Version: 2.1
2
+ Name: pyMachDM
3
+ Version: 0.1.0
4
+ Summary: A Python library for machine-based decision-making in multi-objective optimization.
5
+ Author: Deepanshu Yadav
6
+ License: MIT License
7
+
8
+ Copyright (c) 2026 Deepanshu Yadav
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+ Requires-Python: >=3.8.1
28
+ Description-Content-Type: text/markdown
29
+ License-File: LICENSE
30
+ Requires-Dist: numpy==1.23.5
31
+ Requires-Dist: scipy==1.10.1
32
+ Requires-Dist: pandas==2.0.3
33
+ Requires-Dist: scikit-learn==1.3.2
34
+ Requires-Dist: tensorflow==2.12.0
35
+ Requires-Dist: keras==2.12.0
36
+ Requires-Dist: pymoo==0.6.1.2
37
+ Requires-Dist: sympy==1.13.3
38
+ Requires-Dist: matplotlib==3.7.5
39
+ Requires-Dist: joblib==1.4.2
40
+ Requires-Dist: Pillow==10.4.0
41
+
42
+ # pyMachDM
43
+
44
+ **A Python Library for Benchmarking interactive MCDM using Machine-based DM**
45
+
46
+ `pyMachDM` is a Python library for machine-based decision-making in multi-objective optimization. It provides implementations of Machine-DM procedures that use trained machine-learning models to emulate decision-making behavior and support the selection of preferred solutions from Pareto-optimal and non-Pareto-optimal regions.
47
+
48
+ The library aims to facilitate the application, evaluation, and benchmarking of machine-based interactive multi-criteria decision-making (iMCDM) procedures.
49
+
50
+ ## Features
51
+
52
+ - Machine-based implementations of multiple interactive MCDM procedures.
53
+ - Support for preference-guided exploration of multi-objective optimization problems.
54
+ - Integration with trained artificial neural network (ANN) models.
55
+ - Analysis and ranking of candidate solutions.
56
+ - Support for different optimization problems through problem factories.
57
+ - Integration with [pymoo](https://pymoo.org/) for multi-objective optimization.
58
+
59
+ ## Available Machine-DM Procedures
60
+
61
+ The library currently provides the following procedures:
62
+
63
+ | Procedure | Description |
64
+ |---|---|
65
+ | **GUESS** | Machine-based implementation of the GUESS procedure. |
66
+ | **STEM** | Machine-based implementation of the STEM procedure. |
67
+ | **STOM** | Machine-based implementation of the STOM procedure. |
68
+ | **NIMBUS** | Machine-based implementation of the NIMBUS procedure. |
69
+ | **MOD-GUESS** | Machine-based implementation of the modified GUESS procedure. |
70
+
71
+ ## Installation
72
+
73
+ `pyMachDM` can be installed directly from its GitHub repository using `pip`.
74
+
75
+ ### Prerequisites
76
+
77
+ - Python 3.9 or later
78
+ - Git
79
+
80
+ ### Install from GitHub
81
+
82
+ Open a terminal and execute:
83
+
84
+ ```bash
85
+ pip install git+https://github.com/DeepanshuIITM/pyMachDM.git
86
+ ```
87
+
88
+ ### Verify the installation
89
+
90
+ ```python
91
+ import pymachdm
92
+
93
+ print("pyMachDM installed successfully!")
94
+ ```
95
+
96
+ ### Update the package
97
+
98
+ To install the latest version from GitHub:
99
+
100
+ ```bash
101
+ pip install --upgrade --force-reinstall git+https://github.com/DeepanshuIITM/pyMachDM.git
102
+ ```
103
+
104
+ ## Quick Start
105
+
106
+ The following example demonstrates how to run Machine-DM using the GUESS procedure for the welded-beam design problem.
107
+
108
+ ```python
109
+ import numpy as np
110
+ from pymachdm import run_machdm
111
+ from pymachdm.problems.problem_factory import Welded_Beam
112
+
113
+ # Define the initial design
114
+ x_start = np.array([0.4, 0.4, 2.5, 9.0])
115
+
116
+ # Run Machine-DM
117
+ results = run_machdm(
118
+ problem_name="welded_beam",
119
+ method="guess",
120
+ x_start=x_start,
121
+ n_iter=15,
122
+ ga_pop=100,
123
+ ga_gen=200
124
+ )
125
+
126
+ # Display the results
127
+ print("Objective values:")
128
+ print(results["F"])
129
+
130
+ print("Decision variables:")
131
+ print(results["Param"])
132
+
133
+ print("Solution classes:")
134
+ print(results["Class"])
135
+
136
+ print("Preference values:")
137
+ print(results["Pref_Vals"])
138
+
139
+ print("Solution ranks:")
140
+ print(results["Ranks"])
141
+ ```
142
+
143
+ ## Running Different Machine-DM Procedures
144
+
145
+ The `method` argument determines which Machine-DM procedure is executed.
146
+
147
+ ```python
148
+ methods = ["guess", "stem", "stom", "nimbus", "mod_guess"]
149
+ ```
150
+
151
+ For example:
152
+
153
+ ```python
154
+ results = run_machdm(
155
+ problem_name="welded_beam",
156
+ method="nimbus",
157
+ x_start=x_start,
158
+ n_iter=15,
159
+ ga_pop=100,
160
+ ga_gen=200
161
+ )
162
+ ```
163
+
164
+ ## Repository Structure
165
+
166
+ ```text
167
+ pyMachDM/
168
+ │
169
+ ├── pymachdm/
170
+ │ ├── ann/
171
+ │ ├── machdm_imcdm/
172
+ │ ├── imcdm_methods/
173
+ │ ├── problems/
174
+ │ ├── pareto/
175
+ │ ├── utils/
176
+ │ └── ANN_weights/
177
+ │
178
+ ├── docs/
179
+ ├── mkdocs.yml
180
+ ├── requirements.txt
181
+ ├── pyproject.toml
182
+ ├── README.md
183
+ └── example_run.py
184
+ ```
185
+
186
+ ## Documentation
187
+
188
+ Detailed documentation, examples, and usage instructions are available at:
189
+
190
+ [pyMachDM Documentation](https://deepanshuiitm.github.io/pyMachDM/)
191
+
192
+ ## Dependencies
193
+
194
+ The library relies on scientific computing, machine learning, and multi-objective optimization packages, including:
195
+
196
+ - NumPy
197
+ - SciPy
198
+ - Pandas
199
+ - Scikit-learn
200
+ - TensorFlow and Keras
201
+ - pymoo
202
+ - SymPy
203
+ - Matplotlib
204
+ - Joblib
205
+
206
+ Dependencies are installed automatically when installing the package through the GitHub installation command, provided they are specified in the package configuration.
207
+
208
+ ## Citation
209
+
210
+ If you use `pyMachDM` in your research, please cite the associated research publications. Citation information will be provided here as the corresponding publications become available.
211
+
212
+ ## Author
213
+
214
+ **Deepanshu Yadav**
215
+
216
+ For further information, collaborations, or queries, please visit:
217
+
218
+ - [Personal Website](https://deepanshuiitm.github.io/webpage/)
219
+ - [GitHub Repository](https://github.com/DeepanshuIITM/pyMachDM)
220
+
221
+ ## License
222
+
223
+ Please refer to the repository's `LICENSE` file for licensing information.