I am told to express a fitness function for a question I have been presented. I am unsure how I would express the function. In words, what I have written down makes sense but turning this into a mathematical formula is proving a bit difficult. My understanding is:
The fitness function for this scenario will want to ensure that the best offer for building the computers is chosen whilst the price of the final optimal offer is low.
The fitness function in this case would want to consider a few factors. The first factor is that the quantity of the computer parts was enough that each offers that were returned had a sufficient quantity of parts. Ideally, it would be best if we did not have any duplicates of parts in the offers. The cost is low too, but all parts have been found amongst the different offers that we have.
The fitness function will need to ensure all of this is factored in.
The scenario and question are below:
For the production of a number of laptops, a computer company needs a quantity of each component such as screens (S), hard drives (HD), optical drives (OD), RAM, video cards (VC), CPU, Ports, etc. The company received a number of priced offers. Note that offers do not contain all components. As examples:
- Offer 1: 1000 RAMs, 800 HDs, 2000 ODs – £75K
- Offer 2: 1850 S, 1570 OD - £40K
- Offer 3: 3000 HD, 2000 RAM – £70K
- Offer 4: 1500 RAM, 2000 VC, 1700 S – £55Ketc.
The company would be interested to accept cheaper offers in the first place. Answer the following: Give the expression of the fitness function.
Any help would be greatly appreciated 😊.