added constraint solver code and modified cschedule.php to test