Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/17/18 17:51:26 (6 years ago)
Author:
ddorfmei
Message:

#2931:

  • added all available parameters OR-Tools's linear_solver to LinearProgrammingAlgorithm
    • added necessary parameter enums
  • moved solving logic to Solver
    • created IncrementalSolver, ExternalSolver, ExternalIncrementalSolver
    • added logic for solvers that can be stopped and resumed
  • added SupportsStop property to BasicAlgorithm
  • added quality per time chart for incremental solvers
Location:
branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Templates
Files:
3 edited

Legend:

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

    r16172 r16233  
    66
    77namespace HeuristicLab.MathematicalOptimization.LinearProgramming {
     8
    89  public class CompiledLinearProgrammingProblemDefinition : CompiledProblemDefinition, ILinearProgrammingProblemDefinition {
    9 
    1010    private Variable x;
    1111    private Variable y;
     
    1818    public void BuildModel(Solver solver) {
    1919      // Use vars.yourVariable to access variables in the variable store i.e. yourVariable
    20       // Example model taken from https://developers.google.com/optimization/mip/integer_opt 
     20      // Example model taken from https://developers.google.com/optimization/mip/integer_opt
    2121      // Define the decision variables
    2222      x = solver.MakeIntVar(0, 3.5, "x");
  • branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Templates/ScriptTemplates.Designer.cs

    r16172 r16233  
    99//------------------------------------------------------------------------------
    1010
    11 using System.CodeDom.Compiler;
    12 using System.ComponentModel;
    13 using System.Diagnostics;
    14 using System.Diagnostics.CodeAnalysis;
    15 using System.Globalization;
    16 using System.Resources;
    17 using System.Runtime.CompilerServices;
    18 
    1911namespace HeuristicLab.MathematicalOptimization.LinearProgramming {
    2012  /// <summary>
     
    2517  // To add or remove a member, edit your .ResX file then rerun ResGen
    2618  // with the /str option, or rebuild your VS project.
    27   [GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
    28   [DebuggerNonUserCode()]
    29   [CompilerGenerated()]
     19  [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "15.0.0.0")]
     20  [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     21  [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    3022  internal class ScriptTemplates {
    3123
    32     private static ResourceManager resourceMan;
     24    private static global::System.Resources.ResourceManager resourceMan;
    3325
    34     private static CultureInfo resourceCulture;
     26    private static global::System.Globalization.CultureInfo resourceCulture;
    3527
    36     [SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
     28    [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
    3729    internal ScriptTemplates() {
    3830    }
     
    4133    ///   Returns the cached ResourceManager instance used by this class.
    4234    /// </summary>
    43     [EditorBrowsable(EditorBrowsableState.Advanced)]
    44     internal static ResourceManager ResourceManager {
     35    [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
     36    internal static global::System.Resources.ResourceManager ResourceManager {
    4537      get {
    46         if (ReferenceEquals(resourceMan, null)) {
    47           ResourceManager temp = new ResourceManager("HeuristicLab.MathematicalOptimization.LinearProgramming.Templates.ScriptTemplates" +
     38        if (object.ReferenceEquals(resourceMan, null)) {
     39          global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("HeuristicLab.MathematicalOptimization.LinearProgramming.Templates.ScriptTemplates" +
    4840                  "", typeof(ScriptTemplates).Assembly);
    4941          resourceMan = temp;
     
    5749    ///   resource lookups using this strongly typed resource class.
    5850    /// </summary>
    59     [EditorBrowsable(EditorBrowsableState.Advanced)]
    60     internal static CultureInfo Culture {
     51    [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
     52    internal static global::System.Globalization.CultureInfo Culture {
    6153      get {
    6254        return resourceCulture;
     
    6860
    6961    /// <summary>
    70     ///   Looks up a localized string similar to using System;
    71     ///using System.Linq;
    72     ///using System.Collections.Generic;
    73     ///using HeuristicLab.Common;
    74     ///using HeuristicLab.Core;
     62    ///   Looks up a localized string similar to using Google.OrTools.LinearSolver;
    7563    ///using HeuristicLab.Data;
    76     ///using HeuristicLab.Encodings.BinaryVectorEncoding;
    77     ///using HeuristicLab.Encodings.IntegerVectorEncoding;
    78     ///using HeuristicLab.Encodings.RealVectorEncoding;
    79     ///using HeuristicLab.Encodings.PermutationEncoding;
    80     ///using HeuristicLab.Encodings.LinearLinkageEncoding;
    81     ///using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding;
     64    ///using HeuristicLab.MathematicalOptimization.LinearProgramming.Problems;
    8265    ///using HeuristicLab.Optimization;
    83     ///using H [rest of string was truncated]&quot;;.
     66    ///using HeuristicLab.Problems.Programmable;
     67    ///
     68    ///namespace HeuristicLab.MathematicalOptimization.LinearProgramming {
     69    ///  public class CompiledLinearProgrammingProblemDefinition : CompiledProblemDefinition, ILinearProgrammingProblemDefinition {
     70    ///
     71    ///    private Variable x;
     72    ///    private Variable y;
     73    ///
     74    ///    public override void Initialize() {
     75    ///      // [rest of string was truncated]&quot;;.
    8476    /// </summary>
    8577    internal static string CompiledLinearProgrammingProblemDefinition {
  • branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Templates/ScriptTemplates.resx

    r16172 r16233  
    6060            : and then encoded with base64 encoding.
    6161    -->
    62   <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    63     <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
     62  <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/QualityUpdateIntervalMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
     63    <xsd:import namespace="http://www.w3.org/QualityUpdateIntervalML/1998/namespace" />
    6464    <xsd:element name="root" msdata:IsDataSet="true">
    6565      <xsd:complexType>
Note: See TracChangeset for help on using the changeset viewer.