Genetic algorithms are commonly used to generate high-quality solutions to optimization and search problems by relying on bio-inspired operators such as mutation, crossover and selection.
GA Toolbox is available in MATLAB with advanced features. It is advisable to use the available toolbox rather than writing the own codes. Just type the following in MATLAB command window to know how to use the toolbox:
Dear Jayashree Kambhampati ; From the link below you can download the matlab code https://www.mathworks.com/matlabcentral/fileexchange/71378-yarpiz-evolutionary-algorithms-toolbox-ypea
You can download the source code of Genetic algorithm as well as Multi objective genetic algorithm from math works or GitHub. After this, you have to set objective functions according to your proposed scenario in the existing code.