swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swarm-Support] Model actualization (II)


From: Paul Johnson
Subject: Re: [Swarm-Support] Model actualization (II)
Date: Tue, 27 Sep 2005 10:32:29 -0500
User-agent: Mozilla Thunderbird 1.0.6-1.1.fc4 (X11/20050720)

I think there is probably some slippage between the GUI and your GA class and the Parameter object. My first thought was that the GA code itself was not taking the steps necessary to check with the arguments object to find out the newest values of the parameters. I'd put some fprintf(stderr,"") diagnostics in to see if the arguments class really does have the value from the GUI and then that the GA asks for the newest values.

However, you say it works for integers, but not doubles, and that perplexes me. You say there are ints and doubles side-by-side in a particular object and gui changes in an int work, but gui changes in a float do not? That's a neat trick. Is it possible you mistakenly used "getInt" instead of "getDouble" to retrieve values from arguments? That might break floating point values.

I have no other guesses.

If you send your code in a tarball to me directly, including a README problem explaining the trouble, I might spot it pretty easily. If it is a hard one to fix and takes me more than a couple of hours, I'm going to ask you for a t-shirt from your university/institute. That's the standard fee these days. I'm accumulating some really neat t-shirts from various schools around the world.

David Camacho Trujillo wrote:
Dear Swarm community,

I have actualized my model (It consist of a GA developed by J.J. Merello)
following the new tutorial for the 2.2 version. Therefore, now I don´t establish
the model´s parameters on the “ModelSwarm” but on the “Parameters” Object. Almost every runs fine, but now, if I change the values of float (or double)
parameters, they change on the widget (under GUI mode) but the modelSwarm does
not really actualize them. This is not the case of the “integer” values, which
are properly actualized. (Same problem under batch mode)

I have notice that the methods on “Parameters” are different for integers or
doubles, and I am using specific methods to do so “setParameterX” but still, it
does not work properly and I don´t have an idea on what could be wrong.
Did you have some?

(Iam working under Suse 9.2)
David

_______________________________________________
Support mailing list
address@hidden
http://www.swarm.org/mailman/listinfo/support


--
Paul E. Johnson                       email: address@hidden
Dept. of Political Science            http://lark.cc.ku.edu/~pauljohn
1541 Lilac Lane, Rm 504
University of Kansas                  Office: (785) 864-9086
Lawrence, Kansas 66044-3177           FAX: (785) 864-5700


reply via email to

[Prev in Thread] Current Thread [Next in Thread]