コード例 #1
0
ファイル: PSOD.java プロジェクト: cernoiu-theo/Eva2-AL
 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));
 }
コード例 #2
0
ファイル: PSOD.java プロジェクト: cernoiu-theo/Eva2-AL
 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));
 }
コード例 #3
0
 /** @param initialSig the initialSig to set */
 public void setInitializeSigma(ESMutationInitialSigma initialSig) {
   this.initializeSig = initialSig;
   GenericObjectEditor.setHideProperty(
       this.getClass(), "userDefInitSig", initialSig != ESMutationInitialSigma.userDefined);
 }
コード例 #4
0
ファイル: Tribes.java プロジェクト: cernoiu-theo/Eva2-AL
 /** Population will be hidden. */
 public void hideHideable() {
   GenericObjectEditor.setShowProperty(getClass(), "population", false);
 }