Exemplo n.º 1
0
 public void setAlgoTypeSimplified(SelectedTag algoTypeSimplified) {
   this.algoTypeSimplified = algoTypeSimplified;
   if (algoTypeSimplified.isSelectedString(strYes)) {
     algType.setSelectedTag(0); // inertness
     m_Phi1 = 0.0;
     m_Phi2 = 1.49445;
   } else {
     algType.setSelectedTag(1); // constriction
     m_Phi1 = 2.05;
     setPhi2(2.05);
   }
   GenericObjectEditor.setShowProperty(
       ParticleSwarmOptimization.class, "phi1", algoTypeSimplified.isSelectedString(strNo));
   GenericObjectEditor.setShowProperty(
       ParticleSwarmOptimization.class, "algoType", algoTypeSimplified.isSelectedString(strNo));
 }
Exemplo n.º 2
0
 public void doHiding() {
   GenericObjectEditor.setShowProperty(
       ParticleSwarmOptimization.class, "phi1", algoTypeSimplified.isSelectedString(strNo));
   GenericObjectEditor.setShowProperty(
       getClass(),
       "convergenceCondition",
       algoTypePsod.isSelectedString(strAlgoTypeStagnationRiot));
   GenericObjectEditor.setShowProperty(
       getClass(), "stagnationMeasure", algoTypePsod.isSelectedString(strAlgoTypeStagnationRiot));
   GenericObjectEditor.setShowProperty(
       getClass(), "stagnationTime", algoTypePsod.isSelectedString(strAlgoTypeStagnationRiot));
   GenericObjectEditor.setShowProperty(
       getClass(),
       "convergenceThreshold",
       algoTypePsod.isSelectedString(strAlgoTypeStagnationRiot));
   GenericObjectEditor.setShowProperty(
       getClass(), "sigmaFilter", algoTypePsod.isSelectedString(strAlgoTypeSixSigma));
 }
Exemplo n.º 3
0
 /** Population will be hidden. */
 public void hideHideable() {
   GenericObjectEditor.setShowProperty(getClass(), "population", false);
 }