Changeset 8936
- Timestamp:
- 11/22/12 15:20:00 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableView.cs
r8853 r8936 124 124 private void UpdateContent() { 125 125 if (Content != null) { 126 Content.Fixed = true; 126 127 DeregisterContentEvents(); 127 128 Content.VariableNames = variableNamesView.Content.CheckedItems.Select(x => x.Value).ToList(); -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisProblem.cs
r8853 r8936 211 211 SymbolicExpressionTreeGrammar.MaximumFunctionDefinitions = MaximumFunctionDefinitions.Value; 212 212 foreach (var varSymbol in SymbolicExpressionTreeGrammar.Symbols.OfType<HeuristicLab.Problems.DataAnalysis.Symbolic.Variable>()) { 213 if (!varSymbol.Fixed) varSymbol.AllVariableNames = ProblemData.AllowedInputVariables; 213 if (!varSymbol.Fixed) { 214 varSymbol.AllVariableNames = ProblemData.InputVariables.Select(x => x.Value); 215 varSymbol.VariableNames = ProblemData.AllowedInputVariables; 216 } 214 217 } 215 218 foreach (var varSymbol in SymbolicExpressionTreeGrammar.Symbols.OfType<HeuristicLab.Problems.DataAnalysis.Symbolic.VariableCondition>()) { 216 if (!varSymbol.Fixed) varSymbol.AllVariableNames = ProblemData.AllowedInputVariables; 219 if (!varSymbol.Fixed) { 220 varSymbol.AllVariableNames = ProblemData.InputVariables.Select(x => x.Value); 221 varSymbol.VariableNames = ProblemData.AllowedInputVariables; 222 } 217 223 } 218 224 } -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Symbols/Variable.cs
r8853 r8936 109 109 allVariableNames.Clear(); 110 110 allVariableNames.AddRange(value); 111 VariableNames = value;112 111 } 113 112 } … … 170 169 } 171 170 172 protected override void OnChanged(EventArgs e) {173 if (@Fixed) {174 weightManipulatorMu = 1;175 weightManipulatorSigma = 0;176 weightMu = 1;177 weightSigma = 0;178 multiplicativeWeightManipulatorSigma = 0;179 }180 base.OnChanged(e);181 }182 183 171 public override ISymbolicExpressionTreeNode CreateTreeNode() { 184 172 return new VariableTreeNode(this);
Note: See TracChangeset
for help on using the changeset viewer.