# Changeset 16288

Ignore:
Timestamp:
11/08/18 17:10:53 (16 months ago)
Message:
• 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
Location:
branches/2931_OR-Tools_LP_MIP
Files:
35 edited

Unmodified
Removed
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.ExtLibs/HeuristicLab.OrTools/6.9.0-pre/HeuristicLab.OrTools-6.9.0-pre/Plugin.cs.frame

 r16233 using System; using System.IO; using System.Linq; using System.Runtime.InteropServices; using HeuristicLab.PluginInfrastructure; namespace HeuristicLab.OrTools { [Plugin("HeuristicLab.OrTools", "Provides functionality of Google OR-Tools in HeuristicLab. Requires Windows 64-bit", "6.9.0.$WCREV$")] [PluginFile("HeuristicLab.OrTools-6.9.0-pre.dll", PluginFileType.Assembly)] [PluginFile("Google.OrTools.runtime.win-x64.dll", PluginFileType.NativeDll)] [PluginFile("Google.OrTools_version.txt", PluginFileType.Data)] [PluginFile("Google.Protobuf.dll", PluginFileType.Assembly)] [PluginFile("glpk_4_65.dll", PluginFileType.NativeDll)] [PluginFile("glpk-license.txt", PluginFileType.License)] public class HeuristicLabOrToolsPlugin : PluginBase { ~HeuristicLabOrToolsPlugin() { OnUnload(); // HACK: remove once ticket #2961 is solved } public override void OnUnload() { base.OnUnload(); var thisClass = typeof(HeuristicLabOrToolsPlugin); var dir = new FileInfo(thisClass.Assembly.Location).Directory; if (dir == null) return; var nativeDlls = thisClass.GetCustomAttributes(typeof(PluginFileAttribute), true) .Cast() .Where(pf => pf.FileType == PluginFileType.NativeDll) .Select(pf => pf.FileName); foreach (var nativeDll in dir.EnumerateFiles().Where(f => nativeDlls.Contains(f.Name))) { var handle = LoadLibrary(nativeDll.FullName); if (handle == IntPtr.Zero) continue; FreeLibrary(handle); // close handle obtained above FreeLibrary(handle); // close implicitly obtained handle } } [DllImport("kernel32.dll", SetLastError = true)] [return: MarshalAs(UnmanagedType.Bool)] private static extern bool FreeLibrary(IntPtr hModule); [DllImport("kernel32.dll", SetLastError = true, CharSet = CharSet.Ansi)] private static extern IntPtr LoadLibrary([MarshalAs(UnmanagedType.LPStr)]string lpFileName); } }
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.ExtLibs/HeuristicLab.OrTools/6.9.0-pre/HeuristicLab.OrTools-6.9.0-pre/Properties/AssemblyInfo.cs

 r16233 // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("6.8.0.0")] [assembly: AssemblyFileVersion("6.8.0.16172")] [assembly: AssemblyFileVersion("6.8.0.16233")]
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/HeuristicLab.MathematicalOptimization-3.3.csproj

 r16234 Settings.settings True True Settings.settings

• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/LinearProgrammingType.cs

 r16233 ﻿namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms { ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms { public enum LinearProgrammingType {
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/Base/ExternalIncrementalSolver.cs

 r16233 ﻿using HeuristicLab.Common; ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion using HeuristicLab.Common; using HeuristicLab.Core; using HeuristicLab.Data; } [StorableConstructor] protected ExternalIncrementalSolver(bool deserializing) : base(deserializing) { } protected ExternalIncrementalSolver(ExternalIncrementalSolver original, Cloner cloner) : base(original, cloner) {

• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/Base/IExternalSolver.cs

 r16233 ﻿namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers.Base { ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers.Base { public interface IExternalSolver : ISolver {
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/Base/IIncrementalSolver.cs

 r16233 ﻿using System; ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion using System; namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers.Base {

• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/BopSolver.cs

 r16234 ﻿using HeuristicLab.Core; ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion using HeuristicLab.Common; using HeuristicLab.Core; using HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers.Base; using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; } protected BopSolver(BopSolver original, Cloner cloner) : base(original, cloner) { } [StorableConstructor] protected BopSolver(bool deserializing) : base(deserializing) { } public override bool SupportsPause => true;
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/CoinOrSolver.cs

 r16234 ﻿using HeuristicLab.Core; ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion using HeuristicLab.Common; using HeuristicLab.Core; using HeuristicLab.Data; using HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers.Base; } protected CoinOrSolver(CoinOrSolver original, Cloner cloner) : base(original, cloner) { } [StorableConstructor] protected CoinOrSolver(bool deserializing) : base(deserializing) { } protected override OptimizationProblemType OptimizationProblemType => LinearProgrammingType == LinearProgrammingType.LinearProgramming
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/CplexSolver.cs

 r16234 ﻿using HeuristicLab.Core; ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion using HeuristicLab.Common; using HeuristicLab.Core; using HeuristicLab.Data; using HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers.Base; } [StorableConstructor] protected CplexSolver(bool deserializing) : base(deserializing) { } protected CplexSolver(CplexSolver original, Cloner cloner) : base(original, cloner) { } protected override OptimizationProblemType OptimizationProblemType => LinearProgrammingType == LinearProgrammingType.LinearProgramming
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/GlopSolver.cs

 r16234 ﻿using HeuristicLab.Core; ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion using HeuristicLab.Common; using HeuristicLab.Core; using HeuristicLab.Data; using HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers.Base; } [StorableConstructor] protected GlopSolver(bool deserializing) : base(deserializing) { } protected GlopSolver(GlopSolver original, Cloner cloner) : base(original, cloner) { } public override bool SupportsPause => true;
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/GlpkSolver.cs

 r16234 ﻿using HeuristicLab.Core; ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion using HeuristicLab.Common; using HeuristicLab.Core; using HeuristicLab.Data; using HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers.Base; } protected GlpkSolver(GlpkSolver original, Cloner cloner) : base(original, cloner) { } [StorableConstructor] protected GlpkSolver(bool deserializing) : base(deserializing) { } protected override OptimizationProblemType OptimizationProblemType => LinearProgrammingType == LinearProgrammingType.LinearProgramming
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/GurobiSolver.cs

 r16234 ﻿using HeuristicLab.Common; ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion using HeuristicLab.Common; using HeuristicLab.Core; using HeuristicLab.Data; } [StorableConstructor] protected GurobiSolver(bool deserializing) : base(deserializing) { } public override bool SupportsPause => true;
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Algorithms/Solvers/ScipSolver.cs

 r16234 ﻿using HeuristicLab.Core; ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion using HeuristicLab.Common; using HeuristicLab.Core; using HeuristicLab.Data; using HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers.Base; } [StorableConstructor] protected ScipSolver(bool deserializing) : base(deserializing) { } protected ScipSolver(ScipSolver original, Cloner cloner) : base(original, cloner) { } public override bool SupportsPause => true; protected override OptimizationProblemType OptimizationProblemType => OptimizationProblemType.SCIP_MIXED_INTEGER_PROGRAMMING; OptimizationProblemType.SCIP_MIXED_INTEGER_PROGRAMMING; } }
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/DoubleParam.cs

 r16233 ﻿namespace HeuristicLab.MathematicalOptimization.LinearProgramming { ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion namespace HeuristicLab.MathematicalOptimization.LinearProgramming { // Enumeration of parameters that take continuous values.
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/IncrementalityValues.cs

 r16233 ﻿namespace HeuristicLab.MathematicalOptimization.LinearProgramming { ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion namespace HeuristicLab.MathematicalOptimization.LinearProgramming { public enum IncrementalityValues {
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/IntegerParam.cs

 r16233 ﻿namespace HeuristicLab.MathematicalOptimization.LinearProgramming { ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion namespace HeuristicLab.MathematicalOptimization.LinearProgramming { // Enumeration of parameters that take integer or categorical values.
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/LpAlgorithmValues.cs

 r16233 ﻿namespace HeuristicLab.MathematicalOptimization.LinearProgramming { ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * * This file is part of HeuristicLab. * * HeuristicLab is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * HeuristicLab is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with HeuristicLab. If not, see . */ #endregion namespace HeuristicLab.MathematicalOptimization.LinearProgramming { public enum LpAlgorithmValues {
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Problems/ILinearProgrammingProblemDefinition.cs

 r16233 ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * along with HeuristicLab. If not, see . */ #endregion License Information #endregion using Google.OrTools.LinearSolver;
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Problems/LinearProgrammingProblem.cs

 r16233 ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * along with HeuristicLab. If not, see . */ #endregion License Information #endregion using System.Drawing; } private LinearProgrammingProblem(LinearProgrammingProblem original, Cloner cloner) protected LinearProgrammingProblem(LinearProgrammingProblem original, Cloner cloner) : base(original, cloner) { RegisterEvents(); [StorableConstructor] private LinearProgrammingProblem(bool deserializing) : base(deserializing) { } protected LinearProgrammingProblem(bool deserializing) : base(deserializing) { } public new static Image StaticItemImage => VSImageLibrary.Script;
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Problems/LinearProgrammingProblemDefinitionScript.cs

 r16233 ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * along with HeuristicLab. If not, see . */ #endregion License Information #endregion using System; [StorableClass] public sealed class LinearProgrammingProblemDefinitionScript : Script, ILinearProgrammingProblemDefinition, IStorableContent { protected bool SuppressEvents { get; set; } private bool SuppressEvents { get; set; } [Storable] private VariableStore variableStore; private readonly VariableStore variableStore; public VariableStore VariableStore => variableStore; [StorableConstructor] protected LinearProgrammingProblemDefinitionScript(bool deserializing) : base(deserializing) { } private LinearProgrammingProblemDefinitionScript(bool deserializing) : base(deserializing) { } protected LinearProgrammingProblemDefinitionScript(LinearProgrammingProblemDefinitionScript original, Cloner cloner) private LinearProgrammingProblemDefinitionScript(LinearProgrammingProblemDefinitionScript original, Cloner cloner) : base(original, cloner) { variableStore = cloner.Clone(original.variableStore); private volatile ILinearProgrammingProblemDefinition compiledProblemDefinition; protected ILinearProgrammingProblemDefinition CompiledProblemDefinition { private ILinearProgrammingProblemDefinition CompiledProblemDefinition { get { // double checked locking pattern

• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Problems/ProblemDefinitionScriptException.cs

 r16233 ﻿#region License Information /* HeuristicLab * Copyright (C) 2002-2018 Heuristic and Evolutionary Algorithms Laboratory (HEAL) * along with HeuristicLab. If not, see . */ #endregion License Information #endregion using System;
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Templates/CompiledLinearProgrammingProblemDefinition.cs

 r16233 ﻿using Google.OrTools.LinearSolver; ﻿using System; using System.Linq; using System.Collections.Generic; using Google.OrTools.LinearSolver; using HeuristicLab.Common; using HeuristicLab.Core; using HeuristicLab.Data; using HeuristicLab.MathematicalOptimization.LinearProgramming.Problems; using HeuristicLab.Optimization; using HeuristicLab.Problems.Programmable; using Variable = Google.OrTools.LinearSolver.Variable; namespace HeuristicLab.MathematicalOptimization.LinearProgramming { private Variable x; private Variable y; public override void Initialize() { // Use vars.yourVariable to access variables in the variable store i.e. yourVariable // Add additional initialization code e.g. private variables that you need for evaluating } public void BuildModel(Solver solver) { // Use vars.yourVariable to access variables in the variable store i.e. yourVariable solver.Maximize(x + 10 * y); } public void Analyze(Solver solver, ResultCollection results) { // Use vars.yourVariable to access variables in the variable store i.e. yourVariable //results.AddOrUpdateResult("y", new DoubleValue(solver.LookupVariableOrNull("y").SolutionValue())); } // Implement further classes and methods } }
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Views/LinearProgrammingProblemDefinitionScriptView.cs

 r16172 namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Views { [View("LinearProgrammingProblemDefinitionScriptView")] [Content(typeof(LinearProgrammingProblemDefinitionScript), IsDefaultView = true)]
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Views/LinearProgrammingProblemView.cs

 r16172 namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Views { [View("Linear Programming Problem View")] [Content(typeof(LinearProgrammingProblem), true)] private void LinearProgrammingProblemView_Load(object sender, EventArgs e) { } }
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/Plugin.cs.frame

 r16234 namespace HeuristicLab.MathematicalOptimization { [Plugin("HeuristicLab.MathematicalOptimization", "Provides support for mathematical optimization based on Google OR-Tools", "3.3.15.$WCREV$")] [PluginFile("HeuristicLab.MathematicalOptimization-3.3.dll", PluginFileType.Assembly)]
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/Properties/Settings.Designer.cs

 r16234 [global::System.Configuration.UserScopedSettingAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Configuration.DefaultSettingValueAttribute("glpk465.dll")] [global::System.Configuration.DefaultSettingValueAttribute("glpk_4_65.dll")] public string GlpkLibraryName { get {
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/Properties/Settings.settings

 r16234 glpk465.dll glpk_4_65.dll
• ## branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/app.config

 r16234 ﻿
scip.dll gurobi80.dll cplex1280.dll glpk465.dll
scip.dll gurobi80.dll cplex1280.dll glpk_4_65.dll
Note: See TracChangeset for help on using the changeset viewer.