Topic
  • 2 replies
  • Latest Post - ‏2014-04-09T02:07:05Z by appleme
appleme
appleme
2 Posts

Pinned topic How to count in a desicion variable?

‏2014-04-08T07:51:40Z |

 Hi,all.

tuple  JUP
  {   int index;
    string p;
    string u;      
  } ; 
 
 {JUP} jup=...;

 
  dvar int+ jupz[jup] in 0..1;

I want to get the count from  jupz where  jup.p="T" and jupz[jup]==1 ,How to realize?I found there is no count function to do this.

Could you help me

Thanks.

  • ChrisBr
    ChrisBr
    60 Posts

    Re: How to count in a desicion variable?

    ‏2014-04-08T13:26:41Z  

    Hello,

    You have also posted your question in OPL using CP Optimizer forum. Please refer to this thread.

    Regards,

    Chris.
     

  • appleme
    appleme
    2 Posts

    Re: How to count in a desicion variable?

    ‏2014-04-09T02:07:05Z  
    • ChrisBr
    • ‏2014-04-08T13:26:41Z

    Hello,

    You have also posted your question in OPL using CP Optimizer forum. Please refer to this thread.

    Regards,

    Chris.
     

    Thanks very much,I will go to that forum.