[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Handling equations as objects
From: |
Pietro Terna |
Subject: |
Re: Handling equations as objects |
Date: |
Thu, 20 Aug 1998 16:32:02 +0200 |
Hi,
what about using a script language such Tcl, embedded in C? Swarm
contains
the Tcl library, so calling the GTcl interpreter - I think - is not a problem.
Anyway, I'm working in this direction, for a problem very similar and
I'll
post my results asap.
Pietro
At 18.19 19/08/98 -0400, you wrote:
>
>Hi,
>
>I need some help/ideas. Here is a description of what I am trying to do:
>
>There are 10 consumers and 15 producers and one product that is being
>traded. Each consumer has an equation (the equation is different for
>each consumer) to calculate the demand for the product, and the
>producers have another set of equations to calculate their intended
>supply of the product for each time period.
>
>The problem I have is that equations change and the terms in the
>equation can either increase or decrease. Hard coding the equation in
>the program means that I have to change the code every time I run the
>simulation. I would like to define equation as an object and have
>equations for each consumer/producer read in from a file at the start
>of the simulation.
>
>Has anyone in the hive community done something like this?
>
>Any thoughts/code would be greatly appreciated. I am using swarm
>1.0.5.
>
>Thanks,
>
>Jayshree
>
>
>
> ==================================
> Swarm-Support is for discussion of the technical details of the day
> to day usage of Swarm. For list administration needs (esp.
> [un]subscribing), please send a message to <address@hidden>
> with "help" in the body of the message.
> ==================================
>
==================================
Swarm-Support is for discussion of the technical details of the day
to day usage of Swarm. For list administration needs (esp.
[un]subscribing), please send a message to <address@hidden>
with "help" in the body of the message.
==================================
- Handling equations as objects, Jayshree Sarma, 1998/08/19
- Re: Handling equations as objects, Benedikt Stefansson, 1998/08/19
- Re: Handling equations as objects, Paul Johnson, 1998/08/20
- Re: Handling equations as objects,
Pietro Terna <=
- Re: Handling equations as objects, Jayshree Sarma, 1998/08/21
- Re: Handling equations as objects, Pietro Terna, 1998/08/21
- Swarm on Mac Problems, Perrone Alessandro, 1998/08/24
- Re: Swarm on Mac Problems, Marcus G. Daniels, 1998/08/24
- Re: Swarm on Mac Problems, Perrone Alessandro, 1998/08/25
- Re: Swarm on Mac Problems, Marcus G. Daniels, 1998/08/25