Show / Hide Table of Contents

    Class FicoXpressSolver

    This class allows you to use Xpress from the Optimization.Framework

    Inheritance
    System.Object
    SolverBase
    GenericSolverBase<FicoXpressSolverConfiguration>
    FicoXpressSolver
    Inherited Members
    GenericSolverBase<FicoXpressSolverConfiguration>.Configuration
    SolverBase._busyLock
    SolverBase.CurrentModel
    SolverBase.TriviallyFeasibleConstraintHandling
    SolverBase.Transformation
    SolverBase._model
    SolverBase.IsMultiHierachicalModel
    SolverBase.SetMultiHierarchicalInterruptionCallback(SolverBase.InterruptMultiHierarchicalOptimization)
    SolverBase.Solve(Model, Dictionary<Variable, Double>)
    SolverBase.CachedMergedObjectives
    SolverBase.GetMergedObjectiveForPriorityLevel(Int32, Boolean)
    SolverBase.GetRelevantObjectivesForPrioLevel(Int32)
    SolverBase.ResolveAdapterSpecific(Int32, IDictionary<Variable, Double>)
    SolverBase.RestoreModel(Solution)
    SolverBase.TransformModel()
    SolverBase.RebuildSolverModelAdapterSpecific(Int32)
    SolverBase.SetTimelimitAndGapForCurrentStage(Int32, TimeSpan, Double)
    SolverBase.Dispose()
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: OPTANO.Modeling.Optimization.Solver.FicoXpress843
    Assembly: Optimization.Solver.FicoXpress843.dll
    Syntax
    public class FicoXpressSolver : GenericSolverBase<FicoXpressSolverConfiguration>, ISolver, ICanSolve<Model, Solution>, IAbortable, IDisposable

    Constructors

    FicoXpressSolver(FicoXpressSolverConfiguration)

    Initializes a new instance of the FicoXpressSolver class.

    Declaration
    public FicoXpressSolver(FicoXpressSolverConfiguration configuration = null)
    Parameters
    Type Name Description
    FicoXpressSolverConfiguration configuration

    The configuration.

    Properties

    LogFileStream

    Gets or sets the log file stream.

    Declaration
    protected StreamWriter LogFileStream { get; set; }
    Property Value
    Type Description
    System.IO.StreamWriter

    Methods

    Abort()

    Aborts the solution process.

    Declaration
    public override void Abort()
    Overrides
    SolverBase.Abort()
    Exceptions
    Type Condition
    System.NotSupportedException

    FicoXpressSolver currently cannot be aborted.

    AddConstraint(Constraint)

    Adds the given Constraint to the BCL.XPRBprob.

    Declaration
    protected void AddConstraint(Constraint constraint)
    Parameters
    Type Name Description
    Constraint constraint

    The constraint to add.

    AddObjective(Objective)

    Adds the given Objective to the BCL.XPRBprob.

    Declaration
    protected override void AddObjective(Objective objective)
    Parameters
    Type Name Description
    Objective objective

    The objective to add.

    Overrides
    SolverBase.AddObjective(Objective)

    BuildSolverModelAdapterSpecific(Int32)

    Initialize the Xpress Environment and build the Xpress Model.

    Declaration
    protected override void BuildSolverModelAdapterSpecific(int prioLevel = 0)
    Parameters
    Type Name Description
    System.Int32 prioLevel

    The prio level.

    Overrides
    SolverBase.BuildSolverModelAdapterSpecific(Int32)

    CanExportFile(FileInfo, ExportTime, Boolean)

    True, if ModelOutputFile is not null and has any extension.

    Declaration
    protected override bool CanExportFile(FileInfo outputFile, ExportTime exportTime, bool printHints = false)
    Parameters
    Type Name Description
    System.IO.FileInfo outputFile

    The file to check.

    ExportTime exportTime

    Export before or after solve.

    System.Boolean printHints

    Indicates whether to print hints.

    Returns
    Type Description
    System.Boolean

    The System.Boolean.

    Overrides
    SolverBase.CanExportFile(FileInfo, ExportTime, Boolean)

    ClearLastModel()

    Clears the last model.

    Declaration
    public override void ClearLastModel()
    Overrides
    SolverBase.ClearLastModel()

    DisposeCustom()

    Declaration
    protected override void DisposeCustom()
    Overrides
    SolverBase.DisposeCustom()

    ExportFileSolverSpecific(FileInfo)

    The export model solver specific.

    Declaration
    protected override void ExportFileSolverSpecific(FileInfo filteredOutputFile)
    Parameters
    Type Name Description
    System.IO.FileInfo filteredOutputFile
    Overrides
    SolverBase.ExportFileSolverSpecific(FileInfo)

    LogToConsole(Object, XpressMessageArgs)

    The message callback.

    Declaration
    protected virtual void LogToConsole(object sender, XpressMessageArgs e)
    Parameters
    Type Name Description
    System.Object sender
    XpressMessageArgs e

    The event argument

    RemoveConstraint(String)

    Removes the given Constraint from the BCL.XPRBprob.

    Declaration
    protected override void RemoveConstraint(string name)
    Parameters
    Type Name Description
    System.String name

    The Name of the constraint to remove.

    Overrides
    SolverBase.RemoveConstraint(String)

    SetBranchingDirectionAdapterSpecific()

    Set the BranchingDirection for all discrete variables.

    Declaration
    protected override void SetBranchingDirectionAdapterSpecific()
    Overrides
    SolverBase.SetBranchingDirectionAdapterSpecific()

    SetBranchingPriorityAdapterSpecific()

    Set the BranchingPriority for all discrete variables.

    Declaration
    protected override void SetBranchingPriorityAdapterSpecific()
    Overrides
    SolverBase.SetBranchingPriorityAdapterSpecific()

    SetConfigurationAdapterSpecific()

    Sets the xpress configuration.

    Declaration
    protected override void SetConfigurationAdapterSpecific()
    Overrides
    SolverBase.SetConfigurationAdapterSpecific()

    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 initial solution.

    Returns
    Type Description
    Solution

    The Solution. Before accessing the VariableValues, make sure that the Model is Feasible and the Solution is Feasible or Optimal.

    Overrides
    SolverBase.SolveAdapterSpecific(Int32, IDictionary<Variable, Double>)

    TryLogToFile(Object, XpressMessageArgs)

    Declaration
    protected virtual void TryLogToFile(object sender, XpressMessageArgs e)
    Parameters
    Type Name Description
    System.Object sender
    XpressMessageArgs e

    Events

    MessageCallback

    The message callback.

    Declaration
    public event EventHandler<XpressMessageArgs> MessageCallback
    Event Type
    Type Description
    System.EventHandler<XpressMessageArgs>

    Extension Methods

    ReflectionHelper.GetFieldValue(Object, String)
    ReflectionHelper.SetFieldValue(Object, String, Object)
    ExtensionMethods.Clone<T>(T)
    ExtensionMethods.ThrowIfArgumentIsNull<T>(T, String)
    Back to top Copyright © OPTANO GmbH generated with DocFX
    Privacy Policy | Impressum – Legal Notice