Originally posted by: AndyHam
Please give me advice how to model the following problem. With several years experience in CP, I could not come up with any solution. Thanks!
A company 24*7 operates one machine. The machine can run either single-processing (one type of job at a time) or mix-processing (two types of job at a time) modes. The mix-processing mode is slower than single-processing. However, the company sometimes uses the mix-processing in order to meet a due date. An ideal scheduling output is as follows:
Job Qty Start End Mode
1 6 0 12 "Single"
2 10 12 42 "Mix"
3 10 12 42 "Mix"
1 16 42 74 "Single"
….
//Sample inputs
int pt_Single=2; //Hours
int pt_Mix=3; //Hours
tuple t_Plan {
key int job;
key int release; //Date
key int due; //Date
int qty;
};
{t_Plan} Plan={
<1, 0, 2, 10>,
<2, 0, 2, 10>,
<3, 0, 2, 10>,
<1, 1, 3, 12>,
<2, 1, 3, 8>,
<3, 1, 3, 12>,
<1, 2, 4, 9>,
<2, 2, 4, 11>,
<3, 2, 4, 7>
};
#DecisionOptimization#OPLusingCPOptimizer