Function Documentation

static double gs_agent_complexity_score

(

gs_problem_t *

problem,

gs_server_t *

server

)

[static]

Calculate the complexity score for a problem.

Evaluate the complexity information string from the problem, using the scalar problem arguments IF AVAILABLE. This should give the number of flops required to solve the problem. Use this value along with the speed/load of the machine in Mflop/s to come up an estimated time for solving the problem in seconds which is returned.