Linear Programming of Cost