Changeset 16943
- Timestamp:
- 05/11/19 08:14:56 (6 years ago)
- Location:
- branches/2994-AutoDiffForIntervals
- Files:
-
- 1 deleted
- 15 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2994-AutoDiffForIntervals
- Property svn:mergeinfo changed
/trunk merged: 16933,16939-16940,16942
- Property svn:mergeinfo changed
-
branches/2994-AutoDiffForIntervals/HeuristicLab.Core
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Core merged: 16933,16942
- Property svn:mergeinfo changed
-
branches/2994-AutoDiffForIntervals/HeuristicLab.Core/3.3/NamedItem.cs
r16565 r16943 30 30 [Storable] 31 31 protected string name; 32 /// <inheritdoc/>32 /// Gets and sets the name of the item. 33 33 /// <remarks>Calls <see cref="OnNameChanging"/> and also <see cref="OnNameChanged"/> 34 34 /// eventually in the setter.</remarks> … … 74 74 } 75 75 /// <summary> 76 /// Initializes a new instance of <see cref=" Variable"/> with name <c>Anonymous</c>76 /// Initializes a new instance of <see cref="NamedItem"/> with name and description <c>string.Empty</c> 77 77 /// and value <c>null</c>. 78 78 /// </summary> … … 82 82 } 83 83 /// <summary> 84 /// Initializes a new instance of <see cref="Variable"/> with the specified <paramref name="name"/> 85 /// and the specified <paramref name="value"/>. 84 /// Initializes a new instance of <see cref="NamedItem"/> with the specified <paramref name="name"/> 86 85 /// </summary> 87 86 /// <param name="name">The name of the current instance.</param> 88 /// <param name="value">The value of the current instance.</param>89 87 protected NamedItem(string name) { 90 88 if (name == null) this.name = string.Empty; … … 92 90 description = string.Empty; 93 91 } 92 /// <summary> 93 /// Initializes a new instance of <see cref="NamedItem"/> with the specified <paramref name="name"/> and <paramref name="description"/>. 94 /// </summary> 94 95 protected NamedItem(string name, string description) { 95 96 if (name == null) this.name = string.Empty; … … 100 101 101 102 /// <summary> 102 /// Gets the string representation of the current instance in the format: <c>Name: [null|Value]</c>.103 /// Gets the string representation of the current instance. 103 104 /// </summary> 104 105 /// <returns>The current instance as a string.</returns> … … 122 123 /// Fires a new <c>NameChanged</c> event. 123 124 /// </summary> 124 /// <remarks>Calls <see cref="Item Base.OnChanged"/>.</remarks>125 /// <remarks>Calls <see cref="Item.OnToStringChanged"/>.</remarks> 125 126 protected virtual void OnNameChanged() { 126 127 var handler = NameChanged; … … 133 134 /// Fires a new <c>DescriptionChanged</c> event. 134 135 /// </summary> 135 /// <remarks>Calls <see cref="ItemBase.OnChanged"/>.</remarks>136 136 protected virtual void OnDescriptionChanged() { 137 137 var handler = DescriptionChanged; -
branches/2994-AutoDiffForIntervals/HeuristicLab.Core/3.3/PersistenceContentManager.cs
r16911 r16943 24 24 using HeuristicLab.Persistence.Default.Xml; 25 25 using HEAL.Attic; 26 using System; 26 27 27 28 namespace HeuristicLab.Core { … … 32 33 // first try to load using the new persistence format 33 34 var ser = new ProtoBufSerializer(); 34 var o = (IStorableContent)ser.Deserialize(filename, out SerializationInfo info); 35 if (info.SerializedTypes != null) { 36 return o; 35 try { 36 return (IStorableContent)ser.Deserialize(filename, out SerializationInfo info); 37 } catch (Exception e) { 38 try { 39 // try old format if new format fails 40 return XmlParser.Deserialize<IStorableContent>(filename); 41 } catch (Exception e2) { 42 throw new AggregateException($"Cannot open file {filename}", e, e2); 43 } 37 44 } 38 // try old format if new format fails39 return XmlParser.Deserialize<IStorableContent>(filename);40 45 } 41 46 -
branches/2994-AutoDiffForIntervals/HeuristicLab.ExactOptimization/3.3/LinearProgramming/Algorithms/ProblemType.cs
r16582 r16943 20 20 #endregion 21 21 22 using HEAL.Attic; 23 22 24 namespace HeuristicLab.ExactOptimization.LinearProgramming { 23 25 26 [StorableType("F4D6C4AE-C222-4175-9D05-E13707D0EDDB")] 24 27 public enum ProblemType { 25 28 LinearProgramming, -
branches/2994-AutoDiffForIntervals/HeuristicLab.ExactOptimization/3.3/LinearProgramming/Algorithms/ProtoWriteFormat.cs
r16582 r16943 20 20 #endregion 21 21 22 using HEAL.Attic; 23 22 24 namespace HeuristicLab.ExactOptimization.LinearProgramming { 23 25 26 [StorableType("BBFFAAAC-F9F6-40A9-BC6E-683257F03E2B")] 24 27 public enum ProtoWriteFormat { 25 28 ProtoText, -
branches/2994-AutoDiffForIntervals/HeuristicLab.ExactOptimization/3.3/LinearProgramming/Algorithms/ResultStatus.cs
r16582 r16943 1 namespace HeuristicLab.ExactOptimization.LinearProgramming { 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 2 21 22 using HEAL.Attic; 23 24 namespace HeuristicLab.ExactOptimization.LinearProgramming { 25 26 [StorableType("73192CE9-6D6B-4631-95BE-C15B8B5F9FE6")] 3 27 public enum ResultStatus { 4 28 Optimal, // optimal. -
branches/2994-AutoDiffForIntervals/HeuristicLab.ExactOptimization/3.3/LinearProgramming/Algorithms/SolverResponseStatus.cs
r16582 r16943 20 20 #endregion 21 21 22 using Google.OrTools.LinearSolver;22 using HEAL.Attic; 23 23 24 24 namespace HeuristicLab.ExactOptimization.LinearProgramming { 25 25 26 [StorableType("D6947706-E560-4D5C-8022-C6F1F20DCD8B")] 26 27 public enum SolverResponseStatus { 27 28 Optimal = 0, -
branches/2994-AutoDiffForIntervals/HeuristicLab.ExactOptimization/3.3/LinearProgramming/Algorithms/Solvers/Base/IExternalLinearSolver.cs
r16582 r16943 20 20 #endregion 21 21 22 using HEAL.Attic; 23 22 24 namespace HeuristicLab.ExactOptimization.LinearProgramming { 23 25 26 [StorableType("5892CCCB-7D74-4748-B221-DA12C90B682B")] 24 27 public interface IExternalLinearSolver : ILinearSolver { 25 28 string LibraryName { get; set; } -
branches/2994-AutoDiffForIntervals/HeuristicLab.ExactOptimization/3.3/LinearProgramming/Algorithms/Solvers/Base/IIncrementalLinearSolver.cs
r16582 r16943 21 21 22 22 using System; 23 using HEAL.Attic; 23 24 24 25 namespace HeuristicLab.ExactOptimization.LinearProgramming { 25 26 27 [StorableType("D9B54575-1F8A-4A09-9C62-7492C06535B0")] 26 28 public interface IIncrementalLinearSolver : ILinearSolver { 27 29 TimeSpan QualityUpdateInterval { get; set; } -
branches/2994-AutoDiffForIntervals/HeuristicLab.ExactOptimization/3.3/LinearProgramming/Algorithms/Solvers/Base/ILinearSolver.cs
r16582 r16943 22 22 using System; 23 23 using System.Threading; 24 using HEAL.Attic; 24 25 using HeuristicLab.Core; 25 26 using HeuristicLab.Optimization; … … 27 28 namespace HeuristicLab.ExactOptimization.LinearProgramming { 28 29 30 [StorableType("D647D4F0-A0F5-4091-8F12-54E59CEF12E4")] 29 31 public interface ILinearSolver : IParameterizedNamedItem { 30 32 double DualTolerance { get; set; } -
branches/2994-AutoDiffForIntervals/HeuristicLab.ExactOptimization/3.3/LinearProgramming/Problems/ILinearProblemDefinition.cs
r16582 r16943 21 21 22 22 using Google.OrTools.LinearSolver; 23 using HEAL.Attic; 23 24 using HeuristicLab.Core; 24 25 using HeuristicLab.Optimization; … … 26 27 namespace HeuristicLab.ExactOptimization.LinearProgramming { 27 28 29 [StorableType("4C6CEA85-0197-4A92-A969-C2F964F56388")] 28 30 public interface ILinearProblemDefinition : IItem { 29 31 -
branches/2994-AutoDiffForIntervals/HeuristicLab.ExtLibs
- Property svn:mergeinfo changed
/trunk/HeuristicLab.ExtLibs merged: 16939-16940
- Property svn:mergeinfo changed
-
branches/2994-AutoDiffForIntervals/HeuristicLab.ExtLibs/HeuristicLab.OrTools/7.0.0/HeuristicLab.OrTools-7.0.0/Google.OrTools_version.txt
r16419 r16943 3 3 GitHub [2]. The library was compiled with Visual Studio 2017 for x64. 4 4 5 [1]: https://github.com/ddorfmeister/or-tools/commit/e 13f4bb73f09966332206204d443747e3762555f5 [1]: https://github.com/ddorfmeister/or-tools/commit/eb3d72b09219e1aef48182b77cf26b153e9fc9a1 6 6 [2]: https://github.com/google/or-tools -
branches/2994-AutoDiffForIntervals/HeuristicLab.ExtLibs/HeuristicLab.OrTools/7.0.0/HeuristicLab.OrTools-7.0.0/Plugin.cs.frame
r16910 r16943 38 38 public class HeuristicLabOrToolsPlugin : PluginBase { 39 39 40 public override void OnUnload() { 41 // HACK: free handle to native DLL used temporarily by the Hive Slave 42 // should be solved for all native DLLs used by the Hive Slave 40 ~HeuristicLabOrToolsPlugin() { 41 // HACK: Free handle to native DLL used temporarily by the Hive Slave. 42 // Finalizer must be used because generated finalizers used in 43 // HeuristicLab.ExactOptimization that call destructors in native DLL 44 // are called after HeuristicLabOrToolsPlugin.OnUnload(). 45 // This should be solved for all native DLLs used by the Hive Slave. 43 46 var dllDir = new FileInfo(GetType().Assembly.Location).Directory; 44 47 if (dllDir == null || !dllDir.FullName.Contains(Path.DirectorySeparatorChar + "PluginTemp" + Path.DirectorySeparatorChar))
Note: See TracChangeset
for help on using the changeset viewer.