[eclipse-clp-users] eclipse

From: paniz alipour <alipourpaniz_at_gmail.com>
Date: Fri, 17 Sep 2010 11:37:58 +0430
how can i implement this code that taks fewer time
,num_stud(Num)
,cap_Room(Cap)

,(
for(I,1,NCourse),foreach(F,X),foreach(N,Num),param(NRoom,Cap,T,Timeslots)do
     (for(J,1,Timeslots),foreach(M,F),param(I,NRoom,T,Cap,N)do
        (for(K,1,NRoom),foreach(H,M),foreach(C,Cap),param(T,N,I,J)do
          U is (C-N),
          subscript(T,[I,J,K],BB),
         (U<0->G is (N-C);G is 0),
          %BB is T[I,J,K],
          H#=G*BB

        )
     )
 )
 ,flatten(X,L3)
 ,Z#=sum(L3)
Received on Fri Sep 17 2010 - 07:08:07 CEST

This archive was generated by hypermail 2.2.0 : Thu Feb 02 2012 - 02:31:58 CET