"David Young" <D.S.Young@sussex.ac.uk> wrote in message
bk4guf$ch8$1@soapbox.cs.bham.ac.uk">news:bk4guf$ch8$1@soapbox.cs.bham.ac.uk...
> On Fri, 12 Sep 2003, Richard wrote:
> In case it's relevant, I once wrote a program to maintain a set of
> relationships between a set of Pop-11 variables. For the case above,
> you'd write this:
>
> maintain A1 = 5, A2;
> A1 + 2 -> A2;
> endmaintain;
>
> Then you can get this kind of behaviour:
>
> 100 -> A1;
> A2 =>
> ** 102
> I think the library hasn't propagated out of the local tree at Sussex,
> but I'll put it on my website if you (or anyone) thinks it might be
> useful.
On a different, but related, topic do you (or anyone else) have a library
for solving Linear Programming problems? That is, optimising some
quantity which is linearly dependent on other quantities, subject to
(linear) constraints on those other quantities.
As an example:
maximise chocolate consumption, subject to the constraints that:
total calories less than 2000,
calories from fat less than 40%
calories from protein at least 12%
available foods are chocolate, peanuts, rice and fish fingers
(and compositional data would be available).
This example is stricly hypothetical, of course.
My guess is that there are some free Fortran or C libraries for doing
this? I'm wondering if you've come across any, since you've expressed
interest in linking various other libraries into poplog in the past.
Jonathan
|