Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/07/20 17:46:40 (4 years ago)
Author:
abeham
Message:

#2521: adapted readonly of reference parameters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2521_ProblemRefactoring/HeuristicLab.Problems.GraphColoring/3.3/GraphColoringProblem.cs

    r17544 r17655  
    7474    public GraphColoringProblem() {
    7575      Maximization = false;
    76       Parameters.Add(adjacencyListParameter = new ValueParameter<IntMatrix>("Adjacency List", "The adjacency list that describes the (symmetric) edges in the graph with nodes from 0 to N-1."));
     76      Parameters.Add(adjacencyListParameter = new ValueParameter<IntMatrix>("Adjacency List", "The adjacency list that describes the (symmetric) edges in the graph with nodes from 0 to N-1.") { ReadOnly = true });
    7777      Parameters.Add(fitnessFunctionParameter = new ValueParameter<EnumValue<FitnessFunction>>("Fitness Function", "The function to use for evaluating the quality of a solution.", new EnumValue<FitnessFunction>(FitnessFunction.Penalized)));
    78       Parameters.Add(bestKnownColorsParameter = new OptionalValueParameter<IntValue>("BestKnownColors", "The least amount of colors in a valid coloring."));
     78      Parameters.Add(bestKnownColorsParameter = new OptionalValueParameter<IntValue>("BestKnownColors", "The least amount of colors in a valid coloring.") { ReadOnly = true });
    7979
    8080      var imat = new IntMatrix(defaultInstance.Length, 2);
     
    8484      }
    8585      Dimension = defaultInstanceNodes;
     86      Encoding.LengthParameter.ReadOnly = DimensionRefParameter.ReadOnly = true;
    8687      AdjacencyListParameter.Value = imat;
    8788      BestKnownQualityParameter.Value = null;
Note: See TracChangeset for help on using the changeset viewer.