create initial algorithm for individual cost