Class MipCLSolver
Inherited Members
Namespace: OPTANO.Modeling.Optimization.Solver.MipCL213
Assembly: Optimization.Solver.MipCL213.dll
Syntax
public class MipCLSolver : GenericSolverBase<MipCLSolverConfiguration>, ISolver, ICanSolve<Model, Solution>, IAbortable, IDisposable
Constructors
MipCLSolver(MipCLSolverConfiguration)
Declaration
public MipCLSolver(MipCLSolverConfiguration config = null)
Parameters
Type | Name | Description |
---|---|---|
MipCLSolverConfiguration | config |
Fields
_mipcl_mipmodel
Declaration
public CMIP _mipcl_mipmodel
Field Value
Type | Description |
---|---|
OPTANO.Modeling.Optimization.Solver.MipCL213.WrapperCsharp.CMIP |
Methods
Abort()
This solver does not support aborting the solution finding process
Declaration
public override void Abort()
Overrides
AddConstraint(Constraint)
Since
Declaration
protected void AddConstraint(Constraint constraint)
Parameters
Type | Name | Description |
---|---|---|
Constraint | constraint | The Constraint to add. |
AddObjective(Objective)
Replaces the current objective with objective
.
Declaration
protected override void AddObjective(Objective objective)
Parameters
Type | Name | Description |
---|---|---|
Objective | objective | The objective. |
Overrides
BuildSolverModelAdapterSpecific(Int32)
Solves the specified CurrentModel.
If specified in CopySolutionToModel, the results of a solved Model will automatically
be written in the OPTANO.Modeling's Variables.
Declaration
protected override void BuildSolverModelAdapterSpecific(int prioLevel = 0)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | prioLevel | The priority level to solve for. |
Overrides
ClearLastModel()
Deletes the internal datastructures of this SolverBase instance.
Declaration
public override void ClearLastModel()
Overrides
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | If this SolverBase instance |
ConfigureLogfile()
Enables logging of (at least) basic information about matrix sizes for MIPCL.
Declaration
protected virtual void ConfigureLogfile()
RemoveConstraint(String)
Since
Declaration
protected override void RemoveConstraint(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The Name to remove. |
Overrides
SetConfigurationAdapterSpecific()
Updates the configuration of the MIP CL solver.
Declaration
protected override void SetConfigurationAdapterSpecific()
Overrides
SolveAdapterSpecific(Int32, IDictionary<Variable, Double>)
Solves the specified CurrentModel.
If specified in CopySolutionToModel, the results of a solved Model will automatically
be written in the OPTANO.Modeling's Variables.
Declaration
protected override Solution SolveAdapterSpecific(int prioLevel = 0, IDictionary<Variable, double> variableValues = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | prioLevel | The priority level to solve for. |
System.Collections.Generic.IDictionary<Variable, System.Double> | variableValues | The starting values to pass as |
Returns
Type | Description |
---|---|
Solution | The Solution. Before accessing the VariableValues, make sure that the Model is Feasible and the Solution is Feasible or Optimal. |