How to calculate the crowding distance of the objective values ?

조회 수: 5 (최근 30일)
Akash Pal
Akash Pal 2022년 3월 1일
편집: Ayush Modi 2023년 10월 11일
let think I have a matrix A ,After non dominated sorting I ranked them.I have 15 variables column number (1-15) and two objectives column number(16-17) based on their objective values i ranked them from 1 to N. Now i want to get the crowding distance for both the objective values .As per the formula
CD=(next objective value - Previous objective value )/(Fmax-Fmin)
How to solve this ?I can't understand it .

답변 (1개)

Ayush Modi
Ayush Modi 2023년 9월 29일
편집: Ayush Modi 2023년 10월 11일
Hi,
I understand that you want to know how to implement the logic of calculating crowding distance for each objective parameter (Column 16 and 17).
You can achieve this by using “distancecrowding” inbuilt function in MATLAB Optimization Toolbox.
Alternatively, I found a solution posted in the community. You can refer to the following link:
Go to the functions tab at the top of the page. You will find two files – “CheckCrowdingDistance.m” and “non_domination_sort_mod.m. Refer “non_domination_sort_mod.m” file for the implementation.
I have tried at my end, and both the solution is working. Hope this helps!

카테고리

Help CenterFile Exchange에서 Electrical Block Libraries에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by