Hi everybody,
In Jess programming, is it possible to define a time notion (e.g. 12:00) in
the definition of a rule such that the rule can be activated when the current
time is 12:00.
Thanks
Nice
"Mohd. Noor" <[EMAIL PROTECTED]> wrote:
sory, just wonder is they any suggestion?
On Jan 8, 2008 9:51 PM, Mohd. Noor <[EMAIL PROTECTED]> wrote:
Thanks all
The reason I want to use the JESS/rule base is in its flexibilty to update
the attribute as publish/subscribe by using a broker.
What I means is:
I have a collection of resources attributes to be published in broker e.g. I
have a collection of hosts with different number of CPUs available and this
always changes over time- this information is updated by the monitoring daemon
in the particular resource to the centralised broker. (The resource information
will be publish into the broker as attribute+value e.g.
{RESOURCES=HARDWARE{CPU_AVAIL= 100,MEM_AVAIL=1GB}}) - how to translate this
into rules or something in JESS?
Then I have a collection of user will request for resource, let say the user
want to run a job and GET results within one hour- this request is send to the
broker. BUT the request is not related with CPU_AVAIL attributes but rather
than their own attribute such as TIME_VALUE. e.g. get me the results within one
hour.
So that, the broker will decide in which node the job should be run.
Hope this will give an overview to what I am working on.
Cheers
Mnoor
On Jan 8, 2008 4:31 PM, Jason Morris <[EMAIL PROTECTED]> wrote:
Hi MNoor,
This isn't really a Jess question, but perhaps I can help. The knowledge
domain that you are seeking is called Operations Research. Here is a wikipedia
reference to get you stated: http://en.wikipedia.org/wiki/Operations_research .
An objective function is what you minimize (in the case of cost) or maximize
(in the case of profit, output, or other positive objective) -- in other words,
you are trying to find the values for the independent variables in the
objective function for which its value is optimum These inputs are often
constrained over some domains like [0 <= number_of_CPUs <= 1000]. This
optimization is an application of Linear Programming (LP). See
http://en.wikipedia.org/wiki/Linear_programming .
So, Is there a particular reason why you have to use rules to solve your
problem? There is a whole branch of applied mathematics which is devoted to
this exact kind of problem. Also, would you please send the *exact* wording of
the problem you have been given? That way, I can say for certain whether or
not an LP approach would be better.
Cheers,
Jason
-----------------------------------------------------------
Jason Morris
Morris Technical Solutions LLC
http://www.morris-technical-solutions.com
On Jan 8, 2008 10:55 AM, Mohd. Noor <[EMAIL PROTECTED]> wrote:
Dear all
What is it means by cost or objective function?
one more things.
How I am going to map (using rules) between two different attributes from users
and resources
let say user need to run the job and get results in 1 hour
but the resource available is represented in another attribute, say, the number
of CPU available is 100CPUs
How I am going to translate and map this two different definition/schema
Regards
mnoor
--
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.