Class HighsWrapper13x.HighsLpSolver
Inheritance
System.Object
HighsWrapper13x.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()
Assembly: Optimization.Solver.Highs13x.dll
Syntax
public class HighsLpSolver : IDisposable
Constructors
HighsLpSolver()
Declaration
Methods
addCol(Double, Double, Double, Int32[], Double[])
Declaration
public HighsWrapper13x.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
addCols(Double[], Double[], Double[], Int32[], Int32[], Double[])
Declaration
public HighsWrapper13x.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
addRow(Double, Double, Int32[], Double[])
Declaration
public HighsWrapper13x.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
addRows(Double[], Double[], Int32[], Int32[], Double[])
Declaration
public HighsWrapper13x.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
call(HighsWrapper13x.HighsModel, ref HighsWrapper13x.HighsSolution, ref HighsWrapper13x.HighsBasis, ref HighsWrapper13x.HighsModelStatus)
Declaration
public static HighsWrapper13x.HighsStatus call(HighsWrapper13x.HighsModel model, ref HighsWrapper13x.HighsSolution sol, ref HighsWrapper13x.HighsBasis bas, ref HighsWrapper13x.HighsModelStatus modelstatus)
Parameters
Returns
changeColBounds(Int32, Double, Double)
Declaration
public HighsWrapper13x.HighsStatus changeColBounds(int col, double lower, double upper)
Parameters
Type |
Name |
Description |
System.Int32 |
col |
|
System.Double |
lower |
|
System.Double |
upper |
|
Returns
changeColCost(Int32, Double)
Declaration
public HighsWrapper13x.HighsStatus changeColCost(int col, double cost)
Parameters
Type |
Name |
Description |
System.Int32 |
col |
|
System.Double |
cost |
|
Returns
changeColsBoundsByMask(Boolean[], Double[], Double[])
Declaration
public HighsWrapper13x.HighsStatus changeColsBoundsByMask(bool[] mask, double[] lower, double[] upper)
Parameters
Type |
Name |
Description |
System.Boolean[] |
mask |
|
System.Double[] |
lower |
|
System.Double[] |
upper |
|
Returns
changeColsBoundsByRange(Int32, Int32, Double[], Double[])
Declaration
public HighsWrapper13x.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
changeColsBoundsBySet(Int32[], Double[], Double[])
Declaration
public HighsWrapper13x.HighsStatus changeColsBoundsBySet(int[] cols, double[] lower, double[] upper)
Parameters
Type |
Name |
Description |
System.Int32[] |
cols |
|
System.Double[] |
lower |
|
System.Double[] |
upper |
|
Returns
changeColsCostByMask(Boolean[], Double[])
Declaration
public HighsWrapper13x.HighsStatus changeColsCostByMask(bool[] mask, double[] cost)
Parameters
Type |
Name |
Description |
System.Boolean[] |
mask |
|
System.Double[] |
cost |
|
Returns
changeColsCostBySet(Int32[], Double[])
Declaration
public HighsWrapper13x.HighsStatus changeColsCostBySet(int[] cols, double[] costs)
Parameters
Type |
Name |
Description |
System.Int32[] |
cols |
|
System.Double[] |
costs |
|
Returns
changeObjectiveSense(HighsWrapper13x.HighsObjectiveSense)
Declaration
public HighsWrapper13x.HighsStatus changeObjectiveSense(HighsWrapper13x.HighsObjectiveSense sense)
Parameters
Returns
changeRowBounds(Int32, Double, Double)
Declaration
public HighsWrapper13x.HighsStatus changeRowBounds(int row, double lower, double upper)
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
System.Double |
lower |
|
System.Double |
upper |
|
Returns
changeRowsBoundsByMask(Boolean[], Double[], Double[])
Declaration
public HighsWrapper13x.HighsStatus changeRowsBoundsByMask(bool[] mask, double[] lower, double[] upper)
Parameters
Type |
Name |
Description |
System.Boolean[] |
mask |
|
System.Double[] |
lower |
|
System.Double[] |
upper |
|
Returns
changeRowsBoundsBySet(Int32[], Double[], Double[])
Declaration
public HighsWrapper13x.HighsStatus changeRowsBoundsBySet(int[] rows, double[] lower, double[] upper)
Parameters
Type |
Name |
Description |
System.Int32[] |
rows |
|
System.Double[] |
lower |
|
System.Double[] |
upper |
|
Returns
deleteColsByMask(Boolean[])
Declaration
public HighsWrapper13x.HighsStatus deleteColsByMask(bool[] mask)
Parameters
Type |
Name |
Description |
System.Boolean[] |
mask |
|
Returns
deleteColsByRange(Int32, Int32)
Declaration
public HighsWrapper13x.HighsStatus deleteColsByRange(int from, int to)
Parameters
Type |
Name |
Description |
System.Int32 |
from |
|
System.Int32 |
to |
|
Returns
deleteColsBySet(Int32[])
Declaration
public HighsWrapper13x.HighsStatus deleteColsBySet(int[] cols)
Parameters
Type |
Name |
Description |
System.Int32[] |
cols |
|
Returns
deleteRowsByMask(Boolean[])
Declaration
public HighsWrapper13x.HighsStatus deleteRowsByMask(bool[] mask)
Parameters
Type |
Name |
Description |
System.Boolean[] |
mask |
|
Returns
deleteRowsByRange(Int32, Int32)
Declaration
public HighsWrapper13x.HighsStatus deleteRowsByRange(int from, int to)
Parameters
Type |
Name |
Description |
System.Int32 |
from |
|
System.Int32 |
to |
|
Returns
deleteRowsBySet(Int32[])
Declaration
public HighsWrapper13x.HighsStatus deleteRowsBySet(int[] rows)
Parameters
Type |
Name |
Description |
System.Int32[] |
rows |
|
Returns
Dispose()
Declaration
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 HighsWrapper13x.HighsStatus getBasicVariables(ref int[] basic_variables)
Parameters
Type |
Name |
Description |
System.Int32[] |
basic_variables |
|
Returns
getBasis()
Declaration
public HighsWrapper13x.HighsBasis getBasis()
Returns
getBasisInverseCol(Int32, Double[], ref Int32, Int32[])
Declaration
public HighsWrapper13x.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
getBasisInverseRow(Int32, Double[], ref Int32, Int32[])
Declaration
public HighsWrapper13x.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
getBasisSolve(Double[], Double[], ref Int32, Int32[])
Declaration
public HighsWrapper13x.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
getBasisTransposeSolve(Double[], Double[], ref Int32, Int32[])
Declaration
public HighsWrapper13x.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
getBoolOptionValue(String, out Int32)
Declaration
public HighsWrapper13x.HighsStatus getBoolOptionValue(string option, out int value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.Int32 |
value |
|
Returns
getDoubleOptionValue(String, out Double)
Declaration
public HighsWrapper13x.HighsStatus getDoubleOptionValue(string option, out double value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.Double |
value |
|
Returns
getInfo()
Gets the current solution info.
Declaration
public HighsWrapper13x.SolutionInfo getInfo()
Returns
getIntOptionValue(String, out Int32)
Declaration
public HighsWrapper13x.HighsStatus getIntOptionValue(string option, out int value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.Int32 |
value |
|
Returns
getIterationCount()
Declaration
public int getIterationCount()
Returns
Type |
Description |
System.Int32 |
|
GetModelStatus()
Declaration
public HighsWrapper13x.HighsModelStatus GetModelStatus()
Returns
getNumCol()
Declaration
Returns
Type |
Description |
System.Int32 |
|
getNumNz()
Declaration
Returns
Type |
Description |
System.Int32 |
|
getNumRow()
Declaration
Returns
Type |
Description |
System.Int32 |
|
getObjectiveValue()
Declaration
public double getObjectiveValue()
Returns
Type |
Description |
System.Double |
|
getReducedColumn(Int32, Double[], ref Int32, Int32[])
Declaration
public HighsWrapper13x.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
getReducedRow(Int32, Double[], ref Int32, Int32[])
Declaration
public HighsWrapper13x.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
getSolution()
Declaration
public HighsWrapper13x.HighsSolution getSolution()
Returns
getStringOptionValue(String, out String)
Declaration
public HighsWrapper13x.HighsStatus getStringOptionValue(string option, out string value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.String |
value |
|
Returns
passLp(HighsWrapper13x.HighsModel)
Declaration
public HighsWrapper13x.HighsStatus passLp(HighsWrapper13x.HighsModel model)
Parameters
Returns
passMip(HighsWrapper13x.HighsModel)
Declaration
public HighsWrapper13x.HighsStatus passMip(HighsWrapper13x.HighsModel model)
Parameters
Returns
readModel(String)
Declaration
public HighsWrapper13x.HighsStatus readModel(string filename)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
Returns
run()
Declaration
public HighsWrapper13x.HighsStatus run()
Returns
setBoolOptionValue(String, Int32)
Declaration
public HighsWrapper13x.HighsStatus setBoolOptionValue(string option, int value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.Int32 |
value |
|
Returns
setDoubleOptionValue(String, Double)
Declaration
public HighsWrapper13x.HighsStatus setDoubleOptionValue(string option, double value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.Double |
value |
|
Returns
setIntOptionValue(String, Int32)
Declaration
public HighsWrapper13x.HighsStatus setIntOptionValue(string option, int value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.Int32 |
value |
|
Returns
setOptionValue(String, String)
Declaration
public HighsWrapper13x.HighsStatus setOptionValue(string option, string value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.String |
value |
|
Returns
setSolution(HighsWrapper13x.HighsSolution)
Declaration
public HighsWrapper13x.HighsStatus setSolution(HighsWrapper13x.HighsSolution solution)
Parameters
Returns
setStringOptionValue(String, String)
Declaration
public HighsWrapper13x.HighsStatus setStringOptionValue(string option, string value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.String |
value |
|
Returns
writeModel(String)
Declaration
public HighsWrapper13x.HighsStatus writeModel(string filename)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
Returns
Extension Methods