[pci]add schedulecast function in optimization.py