Show / Hide Table of Contents

    Class HighsWrapper14x.HighsLpSolver

    Inheritance
    System.Object
    HighsWrapper14x.HighsLpSolver
    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.Solver.Highs14x
    Assembly: Optimization.Solver.Highs14x.dll
    Syntax
    public class HighsLpSolver : IDisposable

    Constructors

    HighsLpSolver()

    Declaration
    public HighsLpSolver()

    Methods

    addCol(Double, Double, Double, Int32[], Double[])

    Declaration
    public HighsWrapper14x.HighsStatus addCol(double cost, double lower, double upper, int[] indices, double[] values)
    Parameters
    Type Name Description
    System.Double cost
    System.Double lower
    System.Double upper
    System.Int32[] indices
    System.Double[] values
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    addCols(Double[], Double[], Double[], Int32[], Int32[], Double[])

    Declaration
    public HighsWrapper14x.HighsStatus addCols(double[] costs, double[] lower, double[] upper, int[] starts, int[] indices, double[] values)
    Parameters
    Type Name Description
    System.Double[] costs
    System.Double[] lower
    System.Double[] upper
    System.Int32[] starts
    System.Int32[] indices
    System.Double[] values
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    addRow(Double, Double, Int32[], Double[])

    Declaration
    public HighsWrapper14x.HighsStatus addRow(double lower, double upper, int[] indices, double[] values)
    Parameters
    Type Name Description
    System.Double lower
    System.Double upper
    System.Int32[] indices
    System.Double[] values
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    addRows(Double[], Double[], Int32[], Int32[], Double[])

    Declaration
    public HighsWrapper14x.HighsStatus addRows(double[] lower, double[] upper, int[] starts, int[] indices, double[] values)
    Parameters
    Type Name Description
    System.Double[] lower
    System.Double[] upper
    System.Int32[] starts
    System.Int32[] indices
    System.Double[] values
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    call(HighsWrapper14x.HighsModel, ref HighsWrapper14x.HighsSolution, ref HighsWrapper14x.HighsBasis, ref HighsWrapper14x.HighsModelStatus)

    Declaration
    public static HighsWrapper14x.HighsStatus call(HighsWrapper14x.HighsModel model, ref HighsWrapper14x.HighsSolution sol, ref HighsWrapper14x.HighsBasis bas, ref HighsWrapper14x.HighsModelStatus modelstatus)
    Parameters
    Type Name Description
    HighsWrapper14x.HighsModel model
    HighsWrapper14x.HighsSolution sol
    HighsWrapper14x.HighsBasis bas
    HighsWrapper14x.HighsModelStatus modelstatus
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    changeColBounds(Int32, Double, Double)

    Declaration
    public HighsWrapper14x.HighsStatus changeColBounds(int col, double lower, double upper)
    Parameters
    Type Name Description
    System.Int32 col
    System.Double lower
    System.Double upper
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    changeColCost(Int32, Double)

    Declaration
    public HighsWrapper14x.HighsStatus changeColCost(int col, double cost)
    Parameters
    Type Name Description
    System.Int32 col
    System.Double cost
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    changeColsBoundsByMask(Boolean[], Double[], Double[])

    Declaration
    public HighsWrapper14x.HighsStatus changeColsBoundsByMask(bool[] mask, double[] lower, double[] upper)
    Parameters
    Type Name Description
    System.Boolean[] mask
    System.Double[] lower
    System.Double[] upper
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    changeColsBoundsByRange(Int32, Int32, Double[], Double[])

    Declaration
    public HighsWrapper14x.HighsStatus changeColsBoundsByRange(int from, int to, double[] lower, double[] upper)
    Parameters
    Type Name Description
    System.Int32 from
    System.Int32 to
    System.Double[] lower
    System.Double[] upper
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    changeColsBoundsBySet(Int32[], Double[], Double[])

    Declaration
    public HighsWrapper14x.HighsStatus changeColsBoundsBySet(int[] cols, double[] lower, double[] upper)
    Parameters
    Type Name Description
    System.Int32[] cols
    System.Double[] lower
    System.Double[] upper
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    changeColsCostByMask(Boolean[], Double[])

    Declaration
    public HighsWrapper14x.HighsStatus changeColsCostByMask(bool[] mask, double[] cost)
    Parameters
    Type Name Description
    System.Boolean[] mask
    System.Double[] cost
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    changeColsCostBySet(Int32[], Double[])

    Declaration
    public HighsWrapper14x.HighsStatus changeColsCostBySet(int[] cols, double[] costs)
    Parameters
    Type Name Description
    System.Int32[] cols
    System.Double[] costs
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    changeObjectiveSense(HighsWrapper14x.HighsObjectiveSense)

    Declaration
    public HighsWrapper14x.HighsStatus changeObjectiveSense(HighsWrapper14x.HighsObjectiveSense sense)
    Parameters
    Type Name Description
    HighsWrapper14x.HighsObjectiveSense sense
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    changeRowBounds(Int32, Double, Double)

    Declaration
    public HighsWrapper14x.HighsStatus changeRowBounds(int row, double lower, double upper)
    Parameters
    Type Name Description
    System.Int32 row
    System.Double lower
    System.Double upper
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    changeRowsBoundsByMask(Boolean[], Double[], Double[])

    Declaration
    public HighsWrapper14x.HighsStatus changeRowsBoundsByMask(bool[] mask, double[] lower, double[] upper)
    Parameters
    Type Name Description
    System.Boolean[] mask
    System.Double[] lower
    System.Double[] upper
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    changeRowsBoundsBySet(Int32[], Double[], Double[])

    Declaration
    public HighsWrapper14x.HighsStatus changeRowsBoundsBySet(int[] rows, double[] lower, double[] upper)
    Parameters
    Type Name Description
    System.Int32[] rows
    System.Double[] lower
    System.Double[] upper
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    deleteColsByMask(Boolean[])

    Declaration
    public HighsWrapper14x.HighsStatus deleteColsByMask(bool[] mask)
    Parameters
    Type Name Description
    System.Boolean[] mask
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    deleteColsByRange(Int32, Int32)

    Declaration
    public HighsWrapper14x.HighsStatus deleteColsByRange(int from, int to)
    Parameters
    Type Name Description
    System.Int32 from
    System.Int32 to
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    deleteColsBySet(Int32[])

    Declaration
    public HighsWrapper14x.HighsStatus deleteColsBySet(int[] cols)
    Parameters
    Type Name Description
    System.Int32[] cols
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    deleteRowsByMask(Boolean[])

    Declaration
    public HighsWrapper14x.HighsStatus deleteRowsByMask(bool[] mask)
    Parameters
    Type Name Description
    System.Boolean[] mask
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    deleteRowsByRange(Int32, Int32)

    Declaration
    public HighsWrapper14x.HighsStatus deleteRowsByRange(int from, int to)
    Parameters
    Type Name Description
    System.Int32 from
    System.Int32 to
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    deleteRowsBySet(Int32[])

    Declaration
    public HighsWrapper14x.HighsStatus deleteRowsBySet(int[] rows)
    Parameters
    Type Name Description
    System.Int32[] rows
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    Dispose()

    Declaration
    public void Dispose()
    Implements
    System.IDisposable.Dispose()

    Dispose(Boolean)

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Finalize()

    Declaration
    protected void Finalize()

    getBasicVariables(ref Int32[])

    Declaration
    public HighsWrapper14x.HighsStatus getBasicVariables(ref int[] basic_variables)
    Parameters
    Type Name Description
    System.Int32[] basic_variables
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    getBasis()

    Declaration
    public HighsWrapper14x.HighsBasis getBasis()
    Returns
    Type Description
    HighsWrapper14x.HighsBasis

    getBasisInverseCol(Int32, Double[], ref Int32, Int32[])

    Declaration
    public HighsWrapper14x.HighsStatus getBasisInverseCol(int col, double[] col_vector, ref int col_num_nz, int[] col_indices)
    Parameters
    Type Name Description
    System.Int32 col
    System.Double[] col_vector
    System.Int32 col_num_nz
    System.Int32[] col_indices
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    getBasisInverseRow(Int32, Double[], ref Int32, Int32[])

    Declaration
    public HighsWrapper14x.HighsStatus getBasisInverseRow(int row, double[] row_vector, ref int row_num_nz, int[] row_indices)
    Parameters
    Type Name Description
    System.Int32 row
    System.Double[] row_vector
    System.Int32 row_num_nz
    System.Int32[] row_indices
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    getBasisSolve(Double[], Double[], ref Int32, Int32[])

    Declaration
    public HighsWrapper14x.HighsStatus getBasisSolve(double[] rhs, double[] solution_vector, ref int solution_num_nz, int[] solution_indices)
    Parameters
    Type Name Description
    System.Double[] rhs
    System.Double[] solution_vector
    System.Int32 solution_num_nz
    System.Int32[] solution_indices
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    getBasisTransposeSolve(Double[], Double[], ref Int32, Int32[])

    Declaration
    public HighsWrapper14x.HighsStatus getBasisTransposeSolve(double[] rhs, double[] solution_vector, ref int solution_num_nz, int[] solution_indices)
    Parameters
    Type Name Description
    System.Double[] rhs
    System.Double[] solution_vector
    System.Int32 solution_num_nz
    System.Int32[] solution_indices
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    getBoolOptionValue(String, out Int32)

    Declaration
    public HighsWrapper14x.HighsStatus getBoolOptionValue(string option, out int value)
    Parameters
    Type Name Description
    System.String option
    System.Int32 value
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    getDoubleOptionValue(String, out Double)

    Declaration
    public HighsWrapper14x.HighsStatus getDoubleOptionValue(string option, out double value)
    Parameters
    Type Name Description
    System.String option
    System.Double value
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    getInfo()

    Gets the current solution info.

    Declaration
    public HighsWrapper14x.SolutionInfo getInfo()
    Returns
    Type Description
    HighsWrapper14x.SolutionInfo

    The HighsWrapper14x.SolutionInfo.

    getIntOptionValue(String, out Int32)

    Declaration
    public HighsWrapper14x.HighsStatus getIntOptionValue(string option, out int value)
    Parameters
    Type Name Description
    System.String option
    System.Int32 value
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    getIterationCount()

    Declaration
    public int getIterationCount()
    Returns
    Type Description
    System.Int32

    GetModelStatus()

    Declaration
    public HighsWrapper14x.HighsModelStatus GetModelStatus()
    Returns
    Type Description
    HighsWrapper14x.HighsModelStatus

    getNumCol()

    Declaration
    public int getNumCol()
    Returns
    Type Description
    System.Int32

    getNumNz()

    Declaration
    public int getNumNz()
    Returns
    Type Description
    System.Int32

    getNumRow()

    Declaration
    public int getNumRow()
    Returns
    Type Description
    System.Int32

    getObjectiveValue()

    Declaration
    public double getObjectiveValue()
    Returns
    Type Description
    System.Double

    getReducedColumn(Int32, Double[], ref Int32, Int32[])

    Declaration
    public HighsWrapper14x.HighsStatus getReducedColumn(int col, double[] col_vector, ref int col_num_nz, int[] col_indices)
    Parameters
    Type Name Description
    System.Int32 col
    System.Double[] col_vector
    System.Int32 col_num_nz
    System.Int32[] col_indices
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    getReducedRow(Int32, Double[], ref Int32, Int32[])

    Declaration
    public HighsWrapper14x.HighsStatus getReducedRow(int row, double[] row_vector, ref int row_num_nz, int[] row_indices)
    Parameters
    Type Name Description
    System.Int32 row
    System.Double[] row_vector
    System.Int32 row_num_nz
    System.Int32[] row_indices
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    getSolution()

    Declaration
    public HighsWrapper14x.HighsSolution getSolution()
    Returns
    Type Description
    HighsWrapper14x.HighsSolution

    getStringOptionValue(String, out String)

    Declaration
    public HighsWrapper14x.HighsStatus getStringOptionValue(string option, out string value)
    Parameters
    Type Name Description
    System.String option
    System.String value
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    passLp(HighsWrapper14x.HighsModel)

    Declaration
    public HighsWrapper14x.HighsStatus passLp(HighsWrapper14x.HighsModel model)
    Parameters
    Type Name Description
    HighsWrapper14x.HighsModel model
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    passMip(HighsWrapper14x.HighsModel)

    Declaration
    public HighsWrapper14x.HighsStatus passMip(HighsWrapper14x.HighsModel model)
    Parameters
    Type Name Description
    HighsWrapper14x.HighsModel model
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    readModel(String)

    Declaration
    public HighsWrapper14x.HighsStatus readModel(string filename)
    Parameters
    Type Name Description
    System.String filename
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    run()

    Declaration
    public HighsWrapper14x.HighsStatus run()
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    setBoolOptionValue(String, Int32)

    Declaration
    public HighsWrapper14x.HighsStatus setBoolOptionValue(string option, int value)
    Parameters
    Type Name Description
    System.String option
    System.Int32 value
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    setDoubleOptionValue(String, Double)

    Declaration
    public HighsWrapper14x.HighsStatus setDoubleOptionValue(string option, double value)
    Parameters
    Type Name Description
    System.String option
    System.Double value
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    setIntOptionValue(String, Int32)

    Declaration
    public HighsWrapper14x.HighsStatus setIntOptionValue(string option, int value)
    Parameters
    Type Name Description
    System.String option
    System.Int32 value
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    setOptionValue(String, String)

    Declaration
    public HighsWrapper14x.HighsStatus setOptionValue(string option, string value)
    Parameters
    Type Name Description
    System.String option
    System.String value
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    setSolution(HighsWrapper14x.HighsSolution)

    Declaration
    public HighsWrapper14x.HighsStatus setSolution(HighsWrapper14x.HighsSolution solution)
    Parameters
    Type Name Description
    HighsWrapper14x.HighsSolution solution
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    setStringOptionValue(String, String)

    Declaration
    public HighsWrapper14x.HighsStatus setStringOptionValue(string option, string value)
    Parameters
    Type Name Description
    System.String option
    System.String value
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    writeModel(String)

    Declaration
    public HighsWrapper14x.HighsStatus writeModel(string filename)
    Parameters
    Type Name Description
    System.String filename
    Returns
    Type Description
    HighsWrapper14x.HighsStatus

    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