Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/08/18 17:10:53 (5 years ago)
Author:
ddorfmei
Message:

#2931:

  • added license information to all files
  • added missing storable and cloning constructors
  • fixed a bug that caused an exception when a Hive Slave tried to delete the files in the PluginTemp folder
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/LinearProgrammingAlgorithm.cs

    r16233 r16288  
    1 using System;
     1#region License Information
     2/* HeuristicLab
     3 * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
     4 *
     5 * This file is part of HeuristicLab.
     6 *
     7 * HeuristicLab is free software: you can redistribute it and/or modify
     8 * it under the terms of the GNU General Public License as published by
     9 * the Free Software Foundation, either version 3 of the License, or
     10 * (at your option) any later version.
     11 *
     12 * HeuristicLab is distributed in the hope that it will be useful,
     13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
     14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     15 * GNU General Public License for more details.
     16 *
     17 * You should have received a copy of the GNU General Public License
     18 * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
     19 */
     20#endregion
     21
     22using System;
    223using System.Threading;
    324using Google.OrTools.LinearSolver;
     
    3859
    3960    [Storable]
    40     private readonly IConstrainedValueParameter<ISolver> solverParam;
     61    private IConstrainedValueParameter<ISolver> solverParam;
    4162
    4263    [Storable]
    4364    private readonly IFixedValueParameter<TimeSpanValue> timeLimitParam;
     65
     66    public IConstrainedValueParameter<ISolver> SolverParameter {
     67      get { return solverParam; }
     68      set { solverParam = value; }
     69    }
    4470
    4571    public LinearProgrammingAlgorithm() {
     
    77103
    78104    [StorableConstructor]
    79     private LinearProgrammingAlgorithm(bool deserializing)
     105    protected LinearProgrammingAlgorithm(bool deserializing)
    80106      : base(deserializing) {
    81107    }
    82108
    83     private LinearProgrammingAlgorithm(LinearProgrammingAlgorithm original, Cloner cloner)
     109    protected LinearProgrammingAlgorithm(LinearProgrammingAlgorithm original, Cloner cloner)
    84110      : base(original, cloner) {
    85111      solverParam = cloner.Clone(original.solverParam);
     
    166192      Solver.Interrupt();
    167193    }
     194
    168195    protected override void Initialize(CancellationToken cancellationToken) {
    169196      base.Initialize(cancellationToken);
    170197    }
     198
    171199    protected override void Run(CancellationToken cancellationToken) => Solver.Solve(this, cancellationToken);
    172200  }
Note: See TracChangeset for help on using the changeset viewer.