コード例 #1
0
 public TSPLIBProblem(string name, string comment, int size, double[][] weights,
                      TSPLIBProblemWeightTypeEnum weight_type,
                      TSPLIBProblemTypeEnum problem_type)
 {
     this.Name       = name;
     this.Type       = problem_type;
     this.WeightType = weight_type;
     _weights        = weights;
     _size           = size;
 }
コード例 #2
0
ファイル: TSPLIBProblem.cs プロジェクト: jorik041/osmsharp
        /// <summary>
        /// Creates a new TSP LIB problem.
        /// </summary>
        /// <param name="name"></param>
        /// <param name="comment"></param>
        /// <param name="size"></param>
        /// <param name="weights"></param>
        /// <param name="weight_type"></param>
        /// <param name="problem_type"></param>
        /// <param name="first"></param>
        /// <param name="last"></param>
        public TSPLIBProblem(string name, string comment, int size, double[][] weights,
            TSPLIBProblemWeightTypeEnum weight_type,
            TSPLIBProblemTypeEnum problem_type, int? first, int? last)
        {
            this.Name = name;
            this.Type = problem_type;
            this.WeightType = weight_type;
            _weights = weights;
            _size = size;

            _first = first;
            _last = last;
        }