I have a problem and I need to find a function to categorize element, I'm an expert in math that's why I need the help of the community.
the problem is as follows, I have a set of cars that have these attributes like the model year, mileage traveled, fuel type, fuel consumed per 100km, price. however, we can add more attributes if we need to.
base on these attributes I want to calculate a score of these cars :
object car1 = {
model year = 2016,
mileage traveled = 100000,
fuel type = D,
fuel consumed per 100km = 5,
price = 2500
}
object car2 = {
model year = 2016,
mileage traveled = 150000,
fuel type = D,
fuel consumed per 100km = 7.1,
price = 2400
}
score1 = function(car1);
score2 = function(car2);
I want a fitness function which takes these attributes and calculate the scores, based on the score I will be able to categorize these set of cars.