You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package comes with unit tests. To run the tests:
77
+
78
+
```bash
79
+
python -m unittest discover -s tests
80
+
```
81
+
82
+
You can also run the tests using Docker:
83
+
84
+
```bash
85
+
docker build -t optimization-algorithms .
86
+
docker run -it optimization-algorithms
87
+
```
88
+
89
+
## Algorithms Overview
90
+
91
+
### BMR (Best-Mean-Random) Algorithm
92
+
93
+
The BMR algorithm is based on the best, mean, and random solutions from the population. It works by updating solutions based on their interaction with these key elements.
94
+
95
+
-**Paper Citation**: R. V. Rao, R. Shah, *BMR and BWR: Two simple metaphor-free optimization algorithms*. [arXiv:2407.11149v2](https://arxiv.org/abs/2407.11149).
96
+
97
+
### BWR (Best-Worst-Random) Algorithm
98
+
99
+
The BWR algorithm updates solutions by considering the best, worst, and random solutions in the population. The algorithm balances exploration and exploitation through these interactions.
100
+
101
+
-**Paper Citation**: R. V. Rao, R. Shah, *BMR and BWR: Two simple metaphor-free optimization algorithms*. [arXiv:2407.11149v2](https://arxiv.org/abs/2407.11149).
102
+
103
+
## Docker Support
104
+
105
+
You can use the included `Dockerfile` to build and test the package quickly. To build and run the package in Docker:
106
+
107
+
```bash
108
+
docker build -t optimization-algorithms .
109
+
docker run -it optimization-algorithms
110
+
```
111
+
112
+
## License
113
+
114
+
This package is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.
115
+
116
+
## References
117
+
118
+
1. Ravipudi Venkata Rao, Ravikumar Shah, "BMR and BWR: Two simple metaphor-free optimization algorithms for solving real-life non-convex constrained and unconstrained problems," [arXiv:2407.11149v2](https://arxiv.org/abs/2407.11149).
119
+
120
+
---
121
+
122
+
Happy optimizing!
123
+
```
124
+
125
+
### 5. Final Steps
126
+
127
+
Once you've completed the setup:
128
+
1. **Commit and Push to GitHub**:
129
+
```bash
130
+
git add .
131
+
git commit -m "Added Dockerfile, tests, and README"
132
+
git push origin main
133
+
```
134
+
135
+
2.**Test Locally**:
136
+
Make sure everything works locally before sharing the package.
137
+
138
+
3.**Share Your Package**:
139
+
You can now share the repository link, and anyone can install the package via PyPI or directly from GitHub.
0 commit comments