Show / Hide Table of Contents

    Class GLPKSolverConfiguration

    A configuration for the GLPKSolver.

    Inheritance
    System.Object
    SolverConfiguration
    GLPKSolverConfiguration
    Inherited Members
    SolverConfiguration.LibraryPaths
    SolverConfiguration.CalculateDuals
    SolverConfiguration.OptimalityTolerance
    SolverConfiguration.RetryMultiObjectiveWithTolerance
    SolverConfiguration.ModelOutputFile
    SolverConfiguration.LogFile
    SolverConfiguration.PriorityLevelTimeLimitDefinition
    SolverConfiguration.PriorityLevelMipGapDefinition
    SolverConfiguration.PriorityLevelQualityDegradationDefinition
    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.GLPK
    Assembly: Optimization.Solver.GLPK.dll
    Syntax
    public class GLPKSolverConfiguration : SolverConfiguration

    Constructors

    GLPKSolverConfiguration()

    Initializes a new instance of the GLPKSolverConfiguration class.

    Declaration
    public GLPKSolverConfiguration()

    Fields

    MixedIntegerParameters

    The integer optimization parameters that refer to org.gnu.glpk.glp_iocp.

    Declaration
    public glp_iocp MixedIntegerParameters
    Field Value
    Type Description
    glp_iocp

    SimplexParameters

    The simplex parameters that refer to org.gnu.glpk.glp_smcp.

    Declaration
    public glp_smcp SimplexParameters
    Field Value
    Type Description
    glp_smcp

    Properties

    LogOutput

    Gets or sets the log output writer. If no writer is specified, System.Console.Out will be used as default output.

    Declaration
    public TextWriter LogOutput { get; set; }
    Property Value
    Type Description
    System.IO.TextWriter

    MIPGap

    Relative MIP optimality gap (MIP only). The MIP solver will terminate (with an optimal result) when the relative gap between the lower and upper objective bound is less than MIPGap.

    Declaration
    public override double MIPGap { get; set; }
    Property Value
    Type Description
    System.Double

    Sets a relative tolerance on the gap between the best integer objective and the objective of the best node remaining. When the value

    |bestnode-bestinteger|/(1e-10+|bestinteger|)

    falls below the value of this parameter, the mixed integer optimization is stopped. For example, to instruct CPLEX to stop as soon as it has found a feasible integer solution proved to be within five percent of optimal, set the relative mipgap tolerance to 0.05.

    Overrides
    SolverConfiguration.MIPGap

    MIPGapAbs

    GLPK does not support absolute MIP Gaps. Try using a relative MIPGap instead.

    Declaration
    public override double MIPGapAbs { get; set; }
    Property Value
    Type Description
    System.Double
    Overrides
    SolverConfiguration.MIPGapAbs

    TimeLimit

    Limits the total time expended (in seconds). Setter also updates SimplexParameters.tm_lim and MixedIntegerParameters.tm_lim to the given value.

    Declaration
    public override double TimeLimit { get; set; }
    Property Value
    Type Description
    System.Double

    The time limit in seconds.

    Overrides
    SolverConfiguration.TimeLimit

    Extension Methods

    ExtensionMethods.Clone<T>(T)
    ExtensionMethods.ThrowIfArgumentIsNull<T>(T, String)
    ReflectionHelper.GetFieldValue(Object, String)
    ReflectionHelper.SetFieldValue(Object, String, Object)