This MATLAB project implements a hybrid optimization algorithm that combines Genetic Algorithm (GA) and Particle Swarm Optimization (PSO). The algorithm is designed to optimize a set of parameters (genes) for various problems, making it flexible and adaptable to different optimization scenarios.
- Hybrid Algorithm: Combines the exploration abilities of GA with the exploitation capabilities of PSO.
- Customizable: Easily adapt the algorithm to optimize different types of problems by modifying the fitness functions.
- Scalable: Adjust the number of genes and population size to suit the complexity of your problem.
- MATLAB installed on your system.
- Basic understanding of optimization algorithms.
- Clone this repository to your local machine.
git clone https://github.com/izzuddinafif/MATLAB-GA-PSO.git
- Open MATLAB and navigate to the project directory.
- Open
main_script.m
in MATLAB. - Adjust the parameters at the top of the script as per your optimization problem.
- Define your custom fitness functions if necessary.
- Run the script.
For more detailed instructions, see the User Guide.
- User Guide: Step-by-step instructions on how to use the algorithm.
- Developer Guide: Technical details on the implementation and how to modify or extend the algorithm.
- Example Usage: Examples of how to set up and run the algorithm for different types of optimization problems.
To optimize genes using your own functions:
- Modify the
calculate_total
andcalculate_fitness
functions to suit your problem. - Adjust the
gen_count
,upper_bounds
, andlower_bounds
parameters inmain_script.m
to match your custom functions.
For more details on customization, refer to the Developer Guide.
Contributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have any questions or need further assistance, please reach out to izzuddinafif@gmail.com.