comp.lang.ada
 help / color / mirror / Atom feed
From: Simon Clubley <clubley@remove_me.eisner.decus.org-Earth.UFP>
Subject: Re: Function definitions
Date: Sat, 21 Jun 2014 12:38:23 +0000 (UTC)
Date: 2014-06-21T12:38:23+00:00	[thread overview]
Message-ID: <lo3ubv$jna$1@dont-email.me> (raw)
In-Reply-To: 2aa95b6a-951f-4e1d-adbb-612521fdbe9e@googlegroups.com

On 2014-06-21, montgrimpulo <aghte@hotlinemail.com> wrote:
> Here is another try to describe my problem.
>
> I want to conduct a genetic optimisation-program. There is a function F (the objective function),
> and a function G (the constraint function) which I can define only at runtime. The program handles
> individuals within a population. The size of an individual as well as the size of the population are dynamic and only known at runtime. 
>

When you say F and G can only be defined at runtime, are you wanting to
dynamically generate Ada code at runtime and then execute it, or are you
just wanting to execute the same Ada code, but with different search
parameters and different sized arrays ?

I think the next stage is to try and find out what is so special about
F and G; you clearly need discriminated records, but I'm not yet 100%
convinced, for example, you need generics if this is just searching
for optimised values.

Also, can you talk about how these arrays are populated in the first
place and how that population process fits into the overall program
structure ?

Simon.

-- 
Simon Clubley, clubley@remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980s technology to a 21st century world

  reply	other threads:[~2014-06-21 12:38 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-20 15:18 Function definitions montgrimpulo
2014-06-20 15:44 ` Adam Beneschan
2014-06-20 16:22 ` montgrimpulo
2014-06-20 16:43   ` Adam Beneschan
2014-06-20 16:52     ` Simon Clubley
2014-06-20 17:05       ` Adam Beneschan
2014-06-20 16:43   ` Simon Clubley
2014-06-22  6:59   ` Shark8
2014-06-20 17:39 ` montgrimpulo
2014-06-20 18:19   ` Adam Beneschan
2014-06-20 18:20     ` Adam Beneschan
2014-06-21 20:56     ` Stephen Leake
2014-06-22 12:27     ` Simon Clubley
2014-06-20 20:39   ` Robert A Duff
2014-06-21 12:27 ` montgrimpulo
2014-06-21 12:38   ` Simon Clubley [this message]
2014-06-21 17:57   ` Jeffrey Carter
2014-06-21 13:40 ` montgrimpulo
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox