Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/21/18 09:50:12 (6 years ago)
Author:
ddorfmei
Message:

#2931:

  • created LinearProgrammingAlgorithm
    • created definitions for all LP/MIP solvers supported by OR-Tools
  • created LinearProgrammingProblem
    • created classes required for scripting: LinearProgrammingProblemDefinition, LinearProgrammingProblemDefinitionScript, CompiledLinearProgrammingProblemDefinition
    • created views: LinearProgrammingProblemView, LinearProgrammingProblemDefinitionScriptView
  • updated OR-Tools version in ExtLibs to 6.9
Location:
branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Views
Files:
2 added
4 copied

Legend:

Unmodified
Added
Removed
  • branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Views/LinearProgrammingProblemDefinitionScriptView.Designer.cs

    r16138 r16172  
    2121
    2222
    23 namespace HeuristicLab.Problems.Programmable.Views {
    24   partial class ProblemDefinitionScriptView {
     23using System.ComponentModel;
     24using System.Windows.Forms;
     25using HeuristicLab.Scripting.Views;
     26
     27namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Views {
     28  partial class LinearProgrammingProblemDefinitionScriptView {
    2529    /// <summary>
    2630    /// Required designer variable.
    2731    /// </summary>
    28     private System.ComponentModel.IContainer components = null;
     32    private IContainer components = null;
    2933
    3034    /// <summary>
     
    4650    /// </summary>
    4751    private void InitializeComponent() {
    48       System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ProblemDefinitionScriptView));
     52      System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LinearProgrammingProblemDefinitionScriptView));
    4953      this.splitContainer2 = new System.Windows.Forms.SplitContainer();
    5054      this.variableStoreView = new HeuristicLab.Scripting.Views.VariableStoreView();
     
    168172    #endregion
    169173
    170     private System.Windows.Forms.SplitContainer splitContainer2;
    171     private Scripting.Views.VariableStoreView variableStoreView;
     174    private SplitContainer splitContainer2;
     175    private VariableStoreView variableStoreView;
    172176  }
    173177}
  • branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Views/LinearProgrammingProblemDefinitionScriptView.cs

    r16138 r16172  
    2323using System.Drawing;
    2424using HeuristicLab.MainForm;
     25using HeuristicLab.MathematicalOptimization.LinearProgramming.Problems;
     26using HeuristicLab.PluginInfrastructure;
    2527using HeuristicLab.Scripting.Views;
    2628
    27 namespace HeuristicLab.Problems.Programmable.Views {
    28   [View("ProblemDefinitionScriptView")]
    29   [Content(typeof(ProblemDefinitionScript), IsDefaultView = true)]
    30   public partial class ProblemDefinitionScriptView : ScriptView {
     29namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Views {
     30  [View("LinearProgrammingProblemDefinitionScriptView")]
     31  [Content(typeof(LinearProgrammingProblemDefinitionScript), IsDefaultView = true)]
     32  public partial class LinearProgrammingProblemDefinitionScriptView : ScriptView {
    3133
    32     public new ProblemDefinitionScript Content {
    33       get { return (ProblemDefinitionScript)base.Content; }
    34       set { base.Content = value; }
     34    public new LinearProgrammingProblemDefinitionScript Content {
     35      get => (LinearProgrammingProblemDefinitionScript)base.Content;
     36      set => base.Content = value;
    3537    }
    3638
    37     public ProblemDefinitionScriptView() {
     39    public LinearProgrammingProblemDefinitionScriptView() {
    3840      InitializeComponent();
    3941    }
     
    4143    protected override void OnContentChanged() {
    4244      base.OnContentChanged();
    43       variableStoreView.Content = Content == null ? null : Content.VariableStore;
     45      variableStoreView.Content = Content?.VariableStore;
    4446    }
    4547
     
    5355        base.Compile();
    5456      } catch (ProblemDefinitionScriptException e) {
    55         PluginInfrastructure.ErrorHandling.ShowErrorDialog(e);
     57        ErrorHandling.ShowErrorDialog(e);
    5658        return false;
    5759      }
  • branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Views/LinearProgrammingProblemView.Designer.cs

    r16138 r16172  
    2020#endregion
    2121
    22 namespace HeuristicLab.Problems.Programmable.Views {
    23   partial class SingleObjectiveProgrammableProblemView {
     22using System.ComponentModel;
     23
     24namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Views {
     25  partial class LinearProgrammingProblemView {
    2426    /// <summary>
    2527    /// Required designer variable.
    2628    /// </summary>
    27     private System.ComponentModel.IContainer components = null;
     29    private IContainer components = null;
    2830
    2931    /// <summary>
     
    4749      this.SuspendLayout();
    4850      //
    49       // ProgrammableProblemView
     51      // LinearProgrammingProblemView
    5052      //
    51       this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    52       this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    53       this.Name = "ProgrammableProblemView";
    54       this.Size = new System.Drawing.Size(626, 413);
     53      this.Name = "LinearProgrammingProblemView";
     54      this.Load += new System.EventHandler(this.LinearProgrammingProblemView_Load);
    5555      this.ResumeLayout(false);
    5656
  • branches/2931_OR-Tools_LP_MIP/HeuristicLab.MathematicalOptimization/3.3/LinearProgramming/Views/LinearProgrammingProblemView.cs

    r16138 r16172  
    2525using HeuristicLab.MainForm;
    2626using HeuristicLab.MainForm.WindowsForms;
     27using HeuristicLab.MathematicalOptimization.LinearProgramming.Problems;
    2728
    28 namespace HeuristicLab.Problems.Programmable.Views {
    29   [View("Single-Objective Scriptable Problem View")]
    30   [Content(typeof(SingleObjectiveProgrammableProblem), true)]
    31   public partial class SingleObjectiveProgrammableProblemView : ItemView {
     29namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Views {
     30  [View("Linear Programming Problem View")]
     31  [Content(typeof(LinearProgrammingProblem), true)]
     32  public partial class LinearProgrammingProblemView : ItemView {
    3233    protected ViewHost ScriptView;
    3334
    34     public new SingleObjectiveProgrammableProblem Content {
    35       get { return (SingleObjectiveProgrammableProblem)base.Content; }
    36       set { base.Content = value; }
     35    public new LinearProgrammingProblem Content {
     36      get => (LinearProgrammingProblem)base.Content;
     37      set => base.Content = value;
    3738    }
    3839
    39     public SingleObjectiveProgrammableProblemView() {
     40    public LinearProgrammingProblemView() {
    4041      InitializeComponent();
    41       ScriptView = new ViewHost() { ViewsLabelVisible = false, Dock = DockStyle.Fill };
     42      ScriptView = new ViewHost { ViewsLabelVisible = false, Dock = DockStyle.Fill };
    4243      Controls.Add(ScriptView);
    4344    }
     
    7273      Caption = Content.Name;
    7374    }
     75
     76    private void LinearProgrammingProblemView_Load(object sender, EventArgs e) {
     77
     78    }
    7479  }
    7580}
Note: See TracChangeset for help on using the changeset viewer.