Decision Optimization

Decision Optimization

Delivers prescriptive analytics capabilities and decision intelligence to improve decision-making.

 View Only
  • 1.  CPLEX Syntax support

    Posted Sat January 30, 2016 12:41 AM

    Originally posted by: NguyenHuuTRi


    Hello,

    I am modelling the timetabling model. In my model, I have 173 groups of class of student. Each group will require students to study some required courses and so it is required that each course belong to that group can not be overlapped. I am trying to input the syntax. However, I wonder if we have any way to input the below syntax for all groups once a time instead that we have to input 173 times.

     

    Thank you very much.

     

    Regards,

     

    Nguyen Huu Tri. 

     

    intgroup12[course]=...;

    intgroup16[course]=...;

    tuplecoursegroup {

          int idcourse;

           

    };

    setof(coursegroup) G12 = {<c> | c in course: group12[c]==1};

    setof(coursegroup) G16= {<c> | c in course: group16[c]==1};

     

    forall(t in timeslot) {

                asigngroup12: sum(<l,c,ty,t> in LectureCourseTimes : <c> in G12) x[<l,c,ty,t>] <=1 ;

          };

     

    forall(t in timeslot) {

                asigngroup16: sum(<l,c,ty,t> in LectureCourseTimes : <c> in G16) x[<l,c,ty,t>] <=1 ;


    #CPLEXOptimizers
    #DecisionOptimization


  • 2.  Re: CPLEX Syntax support