I agree with Mahboobeh, it depends on the definition of your problem. However there are some factors that you might consider and develop your fitness function based on them. For example minimum execution time or minimum completion time might be good factors for fitness function. Also you can deem resource utilization as another factor for your function.