Fix the lower bound issues and add random cost file.