Memuat
Memuat
Watch every step above performed live, with English narration.
0 plays
Class book
Page 1 / 6
Cover: Class NSGA-II Hybrid Multi-Objective Optimization MOPSO #3: MOPSO and Pareto Archive
Click a page or use ◀ ▶ to turn · swipe on mobile · to enlarge
Want to go deeper?
Join one of our courses or ask us directly on WhatsApp.
Picked from the software, topic, and level of “Class NSGA-II Hybrid Multi-Objective Optimization MOPSO #3: MOPSO and Pareto Archive”.
Other ways we can help with Python.
Learn with a mentor
Scheduled AI & Machine Learning courses with live guidance and a certificate.

Multi-Objective Optimization Course: NSGA-II, MOPSO & Hybrid Algorithms (Python)

ECG Arrhythmia Classification Course with Wavelet & Deep Learning (PyTorch)

ANFIS + PSO/GA Course for Non-Linear Time Series Forecasting (Python)
Have it built for you
No time to learn Python? Our team can do the project for you.

Python Machine Learning — Prediction Models, Customer Segmentation, Fraud Detection & AI Apps

AI Image Creation with Stable Diffusion — Unlimited Custom Visual Production
★ 4.9

AI Image & Video Creation with Leonardo AI — All-in-One Visuals for Business
★ 4.9
Get notified about new Python classes
At most one email a week. Unfollow anytime with one click.
The full narration of this video. The current sentence is highlighted while the video plays; click any sentence to jump there.
Here is the final result, Mo-PSO, a swarm of particles chasing the leader from the Pareto Archive. After 400 generations, Mo-PSO finds a well-distributed front, but NSGA-2 is closer to the actual front. Each algorithm has different strengths, and that is the basis for hybrid algorithms. Let's get started. Hello, welcome to episode three of the Hybrid Multi-Objective Meta Heuristics series. Particle Swarm Optimization is known for being fast on single-objective problems, as each particle directly moves toward the best solution. In multi-objective problems, there is no single best solution, so Mo-PSO stores the Pareto Archive and selects leaders from there. Today, we are going to write it.
Create a file MOPSO.py The update archive function combines the old archive with new solutions, discards duplicates and dominated solutions. Then, if the archive exceeds capacity, solutions with the highest crowding distance are discarded one by one to maintain an even spread. The select leader function uses a binary tournament on crowding distance, so leaders in areas of the front that are still sparse are more often selected, and particles are pushed to fill the gaps.
The MOPSO function moves 100 particles. New velocity is inertia plus attraction to personal best and attraction to the leader from the archive. Particles that go out of bounds are reflected, and in the first phase of the search, turbulence is added in the form of polynomial mutation to prevent premature convergence. Personal best is replaced if the new solution dominates it, or randomly if neither dominates the other. The archive is updated every iteration, and its size is recorded. Create a test file underscore mobso.py and run it.
MOP, and NSGA2 are run for 400 generations on the three test functions. The MOPSO archive is filled with 100 solutions on ZDT1 and ZDT2, and 97 on ZDT3. The distance of MOPSO to the actual front is 0.0249 for ZDT1, 0.0273 for ZDT2, and 0.0479 for ZDT3. Meanwhile, NSGA2 is closer, around 0.005, 0.003, and 0.01.
Let's look at the graphs. The cross signs of MOPSO are neatly spread along the front, but slightly above the points of NSGA2, meaning its convergence is less dense on 30 variables. The right graph shows the archive being fully populated in a few dozen iterations. However, in the next episode, we will see that MOPSO is actually much faster in the early generations, and this property will be combined with NSGA2.
Done. We have already written MOPSO with a Pareto archive, crowding-based leader selection, multi-objective personal base, and turbulence, then compared it with NSGA2. In the next episode, we will design a hybrid algorithm that combines the strengths of both. Currently working on a thesis, dissertation, or research in the field of optimization and artificial intelligence? Cerdas Inovasi Digital helps implement optimization algorithms, from NSGA2 and MOPSO, hybrid algorithm design, up to hypervolume metrics and IG, statistical test comparisons, and opens Python programming courses for engineers. Want to master the entire series, from Pareto concepts to large-scale case studies? All 6 episodes, complete with PDF step-by-step guides and source code, are available to premium tutorial subscribers. Subscribe starting at Rp69.000 per month, save 28% with the 12-month package, or pay once Rp999.000 for lifetime access. Want just one class? Buy single classes with lifetime access. Subscribe now at the premium page cerdasinovasidigital.com Contact our WhatsApp or visit cerdasinovasidigital.com Thank you for watching, see you in the next episode.
Type a question or keyword; we find the part of this episode that explains it and jump the video there.
Notes are saved with the current video time and are only visible to you.
Stuck on a step? Ask here; the instructor and other learners can answer.
No questions yet.

Cerdas Inovasi Digital Team
Software developers, BIM & 3D engineers, and AI practitioners
We build software, BIM models, games and AI automations for clients every day, and turn that hands-on work into step-by-step classes: every step is shown on screen and comes with a PDF guide you can keep.
See our clients →