Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/08/18 17:10:53 (6 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/Templates/CompiledLinearProgrammingProblemDefinition.cs

    r16233 r16288  
    1 using Google.OrTools.LinearSolver;
     1using System;
     2using System.Linq;
     3using System.Collections.Generic;
     4using Google.OrTools.LinearSolver;
     5using HeuristicLab.Common;
     6using HeuristicLab.Core;
    27using HeuristicLab.Data;
    38using HeuristicLab.MathematicalOptimization.LinearProgramming.Problems;
    49using HeuristicLab.Optimization;
    510using HeuristicLab.Problems.Programmable;
     11using Variable = Google.OrTools.LinearSolver.Variable;
    612
    713namespace HeuristicLab.MathematicalOptimization.LinearProgramming {
     
    1016    private Variable x;
    1117    private Variable y;
    12 
     18   
    1319    public override void Initialize() {
    1420      // Use vars.yourVariable to access variables in the variable store i.e. yourVariable
    1521      // Add additional initialization code e.g. private variables that you need for evaluating
    1622    }
    17 
     23   
    1824    public void BuildModel(Solver solver) {
    1925      // Use vars.yourVariable to access variables in the variable store i.e. yourVariable
     
    2733      solver.Maximize(x + 10 * y);
    2834    }
    29 
     35   
    3036    public void Analyze(Solver solver, ResultCollection results) {
    3137      // Use vars.yourVariable to access variables in the variable store i.e. yourVariable
     
    3743      //results.AddOrUpdateResult("y", new DoubleValue(solver.LookupVariableOrNull("y").SolutionValue()));
    3844    }
    39 
     45   
    4046    // Implement further classes and methods
    4147  }
    4248}
     49
Note: See TracChangeset for help on using the changeset viewer.