I have calculated data from a computer simulation for a wireless network as shown below, here P is an algorithm tuning parameter, 'C' and 'D' are % decrease in collisions and % decrease in delay respectively. Frame lenght is 20%.
P C D Frame Lenght
0.3 184 249 20%
0.4 137 241 20%
0.5 168 230 20%
0.6 221 210 20%
0.7 148 219 20%
0.8 80 219 20%
I need to derive a cost function to provide an output (value of 'P') based on 'C', 'D' and Frame Length. The value of 'P' should be such that max % decrease in 'C' and 'D' is obtained, but 'C' has priority. In this case 'P'=0.6 should be the output of the cost function. I also need to perform simulations by varying Frame length like 40% and 80% to obtain optimum value of 'P' from cost function that provides high %decrease in 'C' . Therefore is it also possible to use Frame length in cost function. Can any one tell how can I derive cost function for 'P'.