Printing out interval value
- From: Andrey Nechypurenko <andreynech@xxxxxxxxx>
- Date: Tue, 16 Jan 2007 16:13:34 +0100
Hi Folks,
I am playing with CLP(R)-based Scheduling algorithm from Bratko's book
(Fig 14.4) using SWI Prolog and have the following question. I would
really appreciate if someone can help me.
The output of this algorithm is formated as array of
Task/Processor/Start/Duration elements, i.e. [t1/1/0.0/2, ... ] . In
case where the Start time is exact number, everything works fine.
However, in some cases, there is flexibility to start certain step
withing particular time interval without affecting the complete
processing time. It means that start time is not the concrete value
but interval. Something like {2 =< Start =< 4} . When I am trying to
print out the result array, what I see is uninitialized variable Start,
i.e. [t2/_G97261{itf = ...}/2/2, ...] . Based on the calculated time I
think that the algorithm works correct even in this case. But obviously,
I would like to see the calculated interval values somehow. So my
question is - what is the right way (if any) in SWI to get upper and
lower bound of the calculated variable (interval) and what does "itf =
...." means?
Thank you very much,
Andrey.
.
- Prev by Date: Re: Prolog vs Visual-Prolog
- Next by Date: Re: Prolog vs Visual-Prolog
- Previous by thread: Prolog vs Visual-Prolog
- Next by thread: Newbie questions about expert system shells
- Index(es):
Relevant Pages
|
|