(!****************************************************** CP Example Problems =================== file b5paint2_ka.mos ``````````````````` Planning of paint production (See "Applications of optimization with Xpress-MP", Section 7,5 Paint production) - Alternative formulation using disjunctions and 2D element constraints - (c) 2008 Artelys S.A. and Fair Isaac Corporation *******************************************************!) model "B-5 Paint production (CP)" uses "kalis" declarations NJ = 5 ! Number of paint batches (=jobs) JOBS=1..NJ DUR: array(JOBS) of integer ! Durations of jobs CLEAN: array(JOBS,JOBS) of integer ! Cleaning times between jobs rank: array(JOBS) of cpvar ! Number of job in position k clean: array(JOBS) of cpvar ! Cleaning time after batches cycleTime: cpvar ! Objective variable end-declarations initializations from 'Data/b5paint.dat' DUR CLEAN end-initializations forall(k in JOBS) setdomain(rank(k), JOBS) ! Cleaning time after every batch forall(k in JOBS) if k