https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/
+ (Ubuntu)
python3 -m pip install --user virtualenv twine setuptools wheel numpy
+ Windows
| # 1st: Take a photo with portray image. | |
| # 2nd: Use this website to make passport photo: https://www.cutout.pro/passport-photo-maker/upload | |
| # 3nd: Download the transformation image above and run this code: | |
| from PIL import Image | |
| # Đường dẫn ảnh | |
| input_image_path = "your_transformed_image.jpg" # Thay bằng đường dẫn ảnh gốc | |
| output_image_path = "the_final_image_to_submit.jpg" |
| @software{thieu_nguyen_2020_3839812, | |
| author = {Thieu Nguyen}, | |
| title = {A framework of the state-of-the-art metaheuristics algorithms in python: mealpy}, | |
| month = may, | |
| year = 2020, | |
| publisher = {Zenodo}, | |
| doi = {10.5281/zenodo.3711948}, | |
| url = {https://doi.org/10.5281/zenodo.3711948} | |
| } |
https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/
+ (Ubuntu)
python3 -m pip install --user virtualenv twine setuptools wheel numpy
+ Windows
| from functools import total_ordering | |
| @total_ordering | |
| class WSN: | |
| def __init__(self, mec_id, cpu_require, priority_level, generate_time, age): | |
| self.mec_id = mec_id | |
| self.cpu_require = cpu_require | |
| self.priority_level = priority_level |
| git branch -m old_branch new_branch # Rename branch locally | |
| git push origin :old_branch # Delete the old branch | |
| git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
| ## Upgrade the library first | |
| ## pip install opfunu --upgrade | |
| ## Current version: 0.7.1 | |
| import numpy as np | |
| from opfunu.cec.cec2013.unconstraint import Model as MD1 | |
| from opfunu.cec.cec2013.unconstraint2 import Model as MD2 | |
| problem_size = 100 | |
| solution = np.ones(problem_size) |
| @software{thieu_nguyen_2020_3839812, | |
| author = {Thieu Nguyen}, | |
| title = {A framework of the state-of-the-art metaheuristics algorithms in python: mealpy}, | |
| month = may, | |
| year = 2020, | |
| publisher = {Zenodo}, | |
| doi = {10.5281/zenodo.3711948}, | |
| url = {https://doi.org/10.5281/zenodo.3711948} | |
| } |
| @incollection{yang2010new, | |
| author = "Xin-She Yang", | |
| booktitle = "Nature inspired cooperative strategies for optimization (NICSO 2010)", | |
| pages = "65–74", | |
| publisher = "Springer", | |
| title = "A new metaheuristic bat-inspired algorithm", | |
| year = "2010", | |
| url={https://doi.org/10.1007/978-3-642-12538-6_6} | |
| } |
| <ul> | |
| {% for category in site.categories %} | |
| {% assign category_name = category[0] %} | |
| <li> | |
| <a href="/blog/categories/{{ category_name | slugify }}/"> | |
| {{ category_name | capitalize | replace: "-", " " }}: | |
| <span class="badge badge-light">{{site.categories[category_name].size}} articles | |
| </span> | |
| </a> | |
| </li> |