Hi guys, I am having trouble to add the new constraints for this kind of problem. The work I am doing is managing the pump and valve running over the 24 hours from 8 am to 7 am the next day. set<num> = {8,9,10,11,...7}; set PUMP = /Pump1 Pump2 Pump3/; var PumpStation{TIME,PUMP} Binary; The objective function is minimized power usage. The constraints I am working on is once the pump is on, it has to run for at least 2 hours. The valve is the following : var Valve{TIME} Binary; var ValveFlow{TIME} integer; con Flow_pb: ValveFlow[t] >= 200*Valve[t]; con Flow_lb: ValveFlow[t] <= 1000*Valve[t]; The new constraints adding in the valve is once the valve is open, the flow needs to be same for at least 4 hours. Thank you.
... View more