Free cookie consent management tool by TermsFeed Policy Generator

source: branches/GeneralizedQAP/HeuristicLab.Services.ProblemInstances/QAP/QAPSolutionDto.cs @ 6689

Last change on this file since 6689 was 6659, checked in by abeham, 13 years ago

#1619

  • experimented with a first locally working version
File size: 1.3 KB
Line 
1
2#region License Information
3/* HeuristicLab
4 * Copyright (C) 2002-2011 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
5 *
6 * This file is part of HeuristicLab.
7 *
8 * HeuristicLab is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * HeuristicLab is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
20 */
21#endregion
22
23using System.Runtime.Serialization;
24
25namespace HeuristicLab.Services.ProblemInstances {
26  [DataContract]
27  public class QAPSolutionDto {
28    [DataMember]
29    public int[] Assignment { get; set; }
30    [DataMember]
31    public double Quality { get; set; }
32
33    public QAPSolutionDto() {
34
35    }
36
37    public QAPSolutionDto(QAPSolution x) {
38      Assignment = PrimitiveSerializer.DeserializeIntArray(x.assignment);
39      Quality = x.quality;
40    }
41  }
42}
Note: See TracBrowser for help on using the repository browser.