Changeset 11087 for trunk/sources/HeuristicLab.Problems.LinearAssignment/3.3/LinearAssignmentProblem.cs
- Timestamp:
- 07/04/14 16:31:30 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.LinearAssignment/3.3/LinearAssignmentProblem.cs
r9456 r11087 33 33 34 34 namespace HeuristicLab.Problems.LinearAssignment { 35 [Item("LinearAssignmentProblem", "In the linear assignment problem (LAP) an assignment of workers to jobs has to be found such that each worker is assigned to exactly one job, each job is assigned to exactly one worker and the sum of the resulting costs needs to be minimal.")]35 [Item("LinearAssignmentProblem", "In the linear assignment problem (LAP) an assignment of workers to jobs has to be found such that each worker is assigned to exactly one job, each job is assigned to exactly one worker and the sum of the resulting costs is minimal (or maximal).")] 36 36 [Creatable("Problems")] 37 37 [StorableClass] … … 153 153 } 154 154 } 155 private void Costs_Reset(object sender, EventArgs e) { 156 Parameterize(); 157 } 155 158 private void SolutionCreator_PermutationParameter_ActualNameChanged(object sender, EventArgs e) { 156 159 Parameterize(); … … 167 170 Costs.RowsChanged += new EventHandler(Costs_RowsChanged); 168 171 Costs.ColumnsChanged += new EventHandler(Costs_ColumnsChanged); 172 Costs.Reset += new EventHandler(Costs_Reset); 169 173 SolutionCreator.PermutationParameter.ActualNameChanged += new EventHandler(SolutionCreator_PermutationParameter_ActualNameChanged); 170 174 } … … 178 182 private void Parameterize() { 179 183 SolutionCreator.LengthParameter.Value = new IntValue(Costs.Rows); 180 SolutionCreator.LengthParameter.Hidden = false; 184 SolutionCreator.LengthParameter.Hidden = true; 185 SolutionCreator.PermutationTypeParameter.Value = new PermutationType(PermutationTypes.Absolute); 186 SolutionCreator.PermutationTypeParameter.Hidden = true; 181 187 Evaluator.CostsParameter.ActualName = CostsParameter.Name; 182 188 Evaluator.CostsParameter.Hidden = true;
Note: See TracChangeset
for help on using the changeset viewer.