I am not familiar with MPPT, but if you can give your objective functions, variables , constraints in their Equation forms, I can help you with the algorithm
Good question, can we get from friends those have knowledge about MPPT, the answer of how to make a hybrid MPPT method, or how to mix two methods together like PSO with cuckoo search algorithm, for example ?
There is a good article in IEEE transactions on Energy Conversion with the title " A Particle Swarm Optimization-Based Maximum Power Point Tracking Algorithm for PV Systems Operating Under Partially Shaded Conditions " at "https://ieeexplore.ieee.org/stamp/stamp.jsp?arnumber=6317161"...This will help you concept wise.
Coming to the programming in matlab, there are matlab programs available at "https://in.mathworks.com/matlabcentral/fileexchange/64629-mppt-for-pv-using-pso"..
You can take the above information as reference and start your work..