Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
1

Number of particle ( hybrid Particle Swarm and Pattern Search Algorithm)+genopt

asked 2016-05-19 10:18:21 -0600

kharbouch gravatar image

updated 2017-09-25 15:39:13 -0600

I'm trying to optimize a building design, by coupling EnergyPlus and an optimization tool GenOpt.

For that , I'm using a Hybrid Generalized Pattern Search Algorithm with Particle Swarm Optimization Algorithm (GPSPSOCCHJ) for discrete and continuous variable, but I can't understand how to determine the number of the particle for this optimization.

Please, give me an idea about the mean of this parameter(NumberOfParticle).

The command file is :

* GenOpt example command file
   MWetter 06/18/2003
*/
Vary{
Parameter{ // azimuthangle

    Name    = x1;
    Min     = -180.0;
    Ini     = 0.0;
    Max     = 180.0;
    Step    = 90.0;
  }


Parameter{ // high windows size

    Name    = x2;
    Min     = 0.8;
    Ini     = 1.6;
    Max     = 1.6;
    Step    = 0.4;
  }


  Parameter{ //infiltrationrate

    Name    = x4;
    Min     = 0.5;
    Ini     = 0.5;
    Max     = 2.0;
    Step    = 0.5;

  }


Parameter{ //ventilationrate

    Name    = x5;
    Min     = 0.0;
    Ini     = 0.0;
    Max     = 2.0;
    Step    = 0.5;
  }

Parameter{ // windowstype

    Name = x6;
    Ini = 1;
    Values = "100, 101" ;
    Type = SET; 

  }
Parameter{ // wall-exterior-type

    Name = x8;
    Ini = 1;
    Values="EWQ23M91,EWQ23M51,EWQ21M51,EWQ21M91,EWQ25M51,EWQ25M91,EWQ27M51,EWQ27M91,EWQ29M51,EWQ29M91" ;
    Type = SET; 
  }

Parameter{ // roof-exterior-type

    Name = x10;
    Ini = 1;
Values = "ERQ23M91,ERQ23M51,ERQ21M51,ERQ21M91,ERQ25M51,ERQ25M91,ERQ27M51,ERQ27M91,ERQ29M51,
ERQ29M91" ;
    Type = SET; 
  }

}


OptimizationSettings{
  MaxIte = 10000;
  MaxEqualResults = 200;
  WriteStepNumber = false;
  UnitsOfExecution = 4;
}

Algorithm{
  Main = GPSPSOCCHJ;
  NeighborhoodTopology = vonNeumann;
  NeighborhoodSize = 5;
  NumberOfParticle =   ;
  NumberOfGeneration = 50;
  Seed = 1;
  CognitiveAcceleration = 2.05;
  SocialAcceleration = 2.05;
  MaxVelocityGainContinuous = 0.2;
  MaxVelocityDiscrete = 4;
  ConstrictionGain = 1;
  MeshSizeDivider = 2;
  InitialMeshSizeExponent = 0;
  MeshSizeExponentIncrement = 1;
  NumberOfStepReduction = 4;
}
edit retag flag offensive close merge delete

Comments

I think your question isn't about GenOpt or energy modeling, it's a math question: it's about what Particle Swarm algorithm actually is, and there's plenty of literature on the subject out there, just google it.

Julien Marrec gravatar imageJulien Marrec ( 2016-05-19 10:34:34 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2016-05-19 10:40:50 -0600

updated 2016-05-19 11:03:15 -0600

See section 5.4.5 in the GenOpt manual for the suggest number of particles.

edit flag offensive delete link more

Comments

thank you, sir, for you feedback . in the Genopt manual (section 5.4.5 ) it s's mentioned that np=5*n up to n=15 . can you explain ,please , what mean the parameter n .

thanks

kharbouch gravatar imagekharbouch ( 2016-05-19 11:34:33 -0600 )edit

See first sentence in Section 5.4

Michael Wetter gravatar imageMichael Wetter ( 2016-05-19 16:07:18 -0600 )edit

the dimension n means the number of variable (discrete and continuous) in the optimization ?

kharbouch gravatar imagekharbouch ( 2016-05-20 09:28:24 -0600 )edit

Yes that's right.

Michael Wetter gravatar imageMichael Wetter ( 2016-05-20 09:52:12 -0600 )edit

thank you .

kharbouch gravatar imagekharbouch ( 2016-05-20 13:30:49 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2016-05-19 10:18:21 -0600

Seen: 108 times

Last updated: May 19 '16