Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Forth > Re: Particle Sw...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 11 of 37 Topic 3745 of 4325
Post > Topic >>

Re: Particle Swarm Optimization

by mhx@[EMAIL PROTECTED] (Marcel Hendrix) Feb 10, 2008 at 10:41 PM

anton@[EMAIL PROTECTED]
 (Anton Ertl) writes Re: Particle Swarm
Optimization
> mhx@[EMAIL PROTECTED]
 (Marcel Hendrix) writes:
>> Triggered by a (German) C't article, last week I experimented a bit 
>> with Particle Swarm Optimization.
> ...
>> Unfortunately, I found the results quite unconvincing. 
[..]
> Yes.  Maybe I missed something, but the particle swarm stuff seems to
> be similar to ant algorithms to me; and that fails to convince me, too
> (but maybe I miss the point of that, too): We know the best path yet
> after the first ant walks it, no need to simulate multiple ants
> walking the same path.  Such algorithms may have a place if you have
> massive parallelism, and very limited communication bandwidth compared
> to computation, but not in settings that most of us use.

Well, ant algorithms can solve 'discrete' problems (without 
derivatives) which is useful. AFAIK, particle swarms can't 
handle such discrete problems, and are very bad at accurately 
finding derivatives. Apparently the algorithm is so deeply 
buried in C++ that even C't editors can't find it. Or maybe
they were only looking at the graphics :-)

>> STRUCT
>>   dfloat% FIELD .myBestResult
[..]
>> END-STRUCT node%        

> Nice to see that you picked up my STRUCT syntax (although it's too
> late for Forth200x).

I'd rather keep on using it. Would the following be close enough 
for Forth 200x? I think the word +FIELD can be combined with 
Gforth's structures? (An obvious problem would be that a Gforth
structure has an aligned size and would produce wrong results 
when creating structures of structures.)

( @[EMAIL PROTECTED]
 HEAD> @[EMAIL PROTECTED]
 >BODY  finds the body address of the last word 
  defined ).

-- ANS 200x 
: +FIELD ( align1 offset1 size "name" -- align2 offset2 ) 1 SWAP FIELD ;
: BEGIN-STRUCTURE ( "name" -- addr 1 0 ) 0 VALUE  @[EMAIL PROTECTED]
 HEAD> @[EMAIL PROTECTED]
 >BODY 1
0 ;
: END-STRUCTURE   ( addr align size -- ) NIP SWAP ! ;
: CFIELD:  char%   FIELD ; 
: FIELD:   cell%   FIELD ; 
: FFIELD:  float%  FIELD ;
: SFFIELD: dfloat% FIELD ;
: DFFIELD: sfloat% FIELD ;

-marcel
 




 37 Posts in Topic:
Particle Swarm Optimization
mhx@[EMAIL PROTECTED] (M  2008-02-02 12:19:06 
Re: Particle Swarm Optimization
"Paul E. Bennett&quo  2008-02-03 21:30:00 
Re: Particle Swarm Optimization
Alex McDonald <blog@[E  2008-02-06 00:57:28 
Re: Particle Swarm Optimization
gavino <gavcomedy@[EMA  2008-02-19 10:49:46 
Re: Particle Swarm Optimization
m-coughlin <m-coughlin  2008-02-23 22:31:01 
Re: Particle Swarm Optimization
William James <w_a_x_m  2008-02-06 02:23:23 
Re: Particle Swarm Optimization
mhx@[EMAIL PROTECTED] (M  2008-02-06 21:33:55 
Re: Particle Swarm Optimization
gavino <gavcomedy@[EMA  2008-02-19 10:50:32 
Re: Particle Swarm Optimization
gavino <gavcomedy@[EMA  2008-02-19 10:51:37 
Re: Particle Swarm Optimization
anton@[EMAIL PROTECTED]   2008-02-10 17:29:06 
Re: Particle Swarm Optimization
mhx@[EMAIL PROTECTED] (M  2008-02-10 22:41:01 
Re: Particle Swarm Optimization
Albert van der Horst <  2008-02-11 10:52:36 
Re: Particle Swarm Optimization
mhx@[EMAIL PROTECTED] (M  2008-02-11 19:19:35 
Re: Particle Swarm Optimization
Albert van der Horst <  2008-02-12 11:39:37 
Re: Particle Swarm Optimization
John Doty <jpd@[EMAIL   2008-02-12 11:00:00 
Re: Particle Swarm Optimization
mhx@[EMAIL PROTECTED] (M  2008-02-13 07:38:53 
Re: Particle Swarm Optimization
John Doty <jpd@[EMAIL   2008-02-13 10:35:49 
Re: Particle Swarm Optimization
mhx@[EMAIL PROTECTED] (M  2008-02-13 19:59:37 
Re: Particle Swarm Optimization
John Doty <jpd@[EMAIL   2008-02-13 14:35:17 
Re: Particle Swarm Optimization
mhx@[EMAIL PROTECTED] (M  2008-02-16 12:21:38 
Re: Particle Swarm Optimization
mhx@[EMAIL PROTECTED] (M  2008-02-16 12:39:34 
Re: Particle Swarm Optimization
John Doty <jpd@[EMAIL   2008-02-18 10:40:50 
Re: Particle Swarm Optimization
mhx@[EMAIL PROTECTED] (M  2008-02-18 20:21:40 
Re: Particle Swarm Optimization
John Doty <jpd@[EMAIL   2008-02-18 15:29:13 
Re: Particle Swarm Optimization
Jerry Avins <jya@[EMAI  2008-02-18 17:39:54 
Re: Particle Swarm Optimization
mhx@[EMAIL PROTECTED] (M  2008-02-19 20:20:06 
Re: Particle Swarm Optimization
gavino <gavcomedy@[EMA  2008-02-19 11:14:52 
Re: Particle Swarm Optimization
John Doty <jpd@[EMAIL   2008-02-19 12:36:16 
Re: Particle Swarm Optimization
gavino <gavcomedy@[EMA  2008-02-19 10:59:36 
Re: Particle Swarm Optimization
anton@[EMAIL PROTECTED]   2008-02-11 12:55:24 
Re: Particle Swarm Optimization
mhx@[EMAIL PROTECTED] (M  2008-02-11 19:42:17 
Re: Particle Swarm Optimization
gavino <gavcomedy@[EMA  2008-02-19 10:55:44 
Re: Particle Swarm Optimization
gavino <gavcomedy@[EMA  2008-02-19 10:54:00 
Re: Particle Swarm Optimization
Doug Hoffman <no.spam&  2008-02-17 09:08:04 
Re: Particle Swarm Optimization
mhx@[EMAIL PROTECTED] (M  2008-02-17 17:14:44 
Re: Particle Swarm Optimization
Doug Hoffman <no.spam&  2008-02-17 15:29:03 
Re: Particle Swarm Optimization
gavino <gavcomedy@[EMA  2008-02-19 10:39:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 14:46:01 CST 2008.