color graph - linear optimization problem