Ejemplo 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));
 }
Ejemplo 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));
 }
 /** @param initialSig the initialSig to set */
 public void setInitializeSigma(ESMutationInitialSigma initialSig) {
   this.initializeSig = initialSig;
   GenericObjectEditor.setHideProperty(
       this.getClass(), "userDefInitSig", initialSig != ESMutationInitialSigma.userDefined);
 }
Ejemplo n.º 4
0
 /** Population will be hidden. */
 public void hideHideable() {
   GenericObjectEditor.setShowProperty(getClass(), "population", false);
 }