I have a linear model that works fine but has a huge amount of time of resolution that I want to reduce. One approach is that I convert it to constraint programming. Supposing that I have a specific task that requires 5 hours of working. For instance there are a lot of possibility to allocate energy: I can perform 5 hours and I finish the task in one day or perform 2.5 hours a day and finish in 2 days. Suppose we admit at max this task can be interrupted once such that either we allocate hours until final day or allocate 1 hours for example and then come back after 3 days of break (no allocated energy there) to allocate the rest of required energy on all the consecutive coming days after the break
Can anyone suggest me some logic how to do it in the compact form using constraint programming? I don't mind if the solution is cplex of minizinc