Last change
on this file since 16233 was
16233,
checked in by ddorfmei, 6 years ago
|
#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
|
File size:
884 bytes
|
Line | |
---|
1 | using HeuristicLab.Common;
|
---|
2 | using HeuristicLab.Core;
|
---|
3 | using HeuristicLab.Data;
|
---|
4 | using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
|
---|
5 |
|
---|
6 | namespace HeuristicLab.MathematicalOptimization.LinearProgramming.Algorithms.Solvers.Base {
|
---|
7 |
|
---|
8 | [StorableClass]
|
---|
9 | public class ExternalSolver : Solver, IExternalSolver {
|
---|
10 |
|
---|
11 | protected const string FileDialogFilter = "Dynamic-Link Library (*.dll)|*.dll|All Files (*.*)|*.*";
|
---|
12 |
|
---|
13 | [Storable]
|
---|
14 | protected IFixedValueParameter<FileValue> libraryNameParam;
|
---|
15 |
|
---|
16 | public ExternalSolver() {
|
---|
17 | }
|
---|
18 |
|
---|
19 | protected ExternalSolver(ExternalSolver original, Cloner cloner)
|
---|
20 | : base(original, cloner) {
|
---|
21 | libraryNameParam = cloner.Clone(original.libraryNameParam);
|
---|
22 | }
|
---|
23 |
|
---|
24 | public string LibraryName {
|
---|
25 | get => libraryNameParam?.Value.Value;
|
---|
26 | set => libraryNameParam.Value.Value = value;
|
---|
27 | }
|
---|
28 | }
|
---|
29 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.