Show / Hide Table of Contents

    Class Calculation

    Collection of general calculation methods.

    Inheritance
    System.Object
    Calculation
    Inherited Members
    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
    Assembly: Optimization.dll
    Syntax
    public static class Calculation

    Methods

    ComputeBestBoundFromObjectiveAndGap(Double, Double, ObjectiveSense)

    Computes the best bound from a given mip gap and (primal) objective value, considering the objective sense.

    Declaration
    public static double ComputeBestBoundFromObjectiveAndGap(double objVal, double gap, ObjectiveSense sense = ObjectiveSense.Minimize)
    Parameters
    Type Name Description
    System.Double objVal

    The objective value.

    System.Double gap

    The mip gap.

    ObjectiveSense sense

    The objective sense.

    Returns
    Type Description
    System.Double

    ComputeMipGap(Nullable<Double>, Nullable<Double>)

    Computes the MIP Gap according to the official Gurobi specification.

    Declaration
    public static double ComputeMipGap(double? objectiveValue, double? bestBound)
    Parameters
    Type Name Description
    System.Nullable<System.Double> objectiveValue

    The objective value.

    System.Nullable<System.Double> bestBound

    The best bound.

    Returns
    Type Description
    System.Double
    Back to top Copyright © OPTANO GmbH generated with DocFX
    Privacy Policy | Impressum – Legal Notice