Home Ask Login Register

Developers Planet

Your answer is one click away!

William Perez Herrera February 2016

what is the better way to calculate unique value based on weighted variables?

I have to create a priority queue for elements which have multiples variables with an associated weight, what is the better way calculate a unique value in order to get the order of each element in the queue? using a weighted average or using some mathematical modeling? please advice.


Koen Peters February 2016

Are you sure you want to turn the weighted variables into a unique value? Mathematically speaking this gets quite tricky (imagine 2 elements with exactly the same parameters - which one gets a higher value?).

If the value need not be unique, you can use stuff like weighted average, weighted sum, or utility functions. If you want to determine the appropriate weights for the different variables you can look into stuff like the Analytical Network Process (ANP) link

Post Status

Asked in February 2016
Viewed 3,056 times
Voted 6
Answered 1 times


Leave an answer

Quote of the day: live life