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()
Assembly: Optimization.Solver.Highs14x.dll
Syntax
public class HighsLpSolver : IDisposable
Constructors
HighsLpSolver()
Declaration
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
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
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
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
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
Returns
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
changeColCost(Int32, Double)
Declaration
public HighsWrapper14x.HighsStatus changeColCost(int col, double cost)
Parameters
| Type |
Name |
Description |
| System.Int32 |
col |
|
| System.Double |
cost |
|
Returns
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
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
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
changeColsCostByMask(Boolean[], Double[])
Declaration
public HighsWrapper14x.HighsStatus changeColsCostByMask(bool[] mask, double[] cost)
Parameters
| Type |
Name |
Description |
| System.Boolean[] |
mask |
|
| System.Double[] |
cost |
|
Returns
changeColsCostBySet(Int32[], Double[])
Declaration
public HighsWrapper14x.HighsStatus changeColsCostBySet(int[] cols, double[] costs)
Parameters
| Type |
Name |
Description |
| System.Int32[] |
cols |
|
| System.Double[] |
costs |
|
Returns
changeObjectiveSense(HighsWrapper14x.HighsObjectiveSense)
Declaration
public HighsWrapper14x.HighsStatus changeObjectiveSense(HighsWrapper14x.HighsObjectiveSense sense)
Parameters
Returns
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
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
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
deleteColsByMask(Boolean[])
Declaration
public HighsWrapper14x.HighsStatus deleteColsByMask(bool[] mask)
Parameters
| Type |
Name |
Description |
| System.Boolean[] |
mask |
|
Returns
deleteColsByRange(Int32, Int32)
Declaration
public HighsWrapper14x.HighsStatus deleteColsByRange(int from, int to)
Parameters
| Type |
Name |
Description |
| System.Int32 |
from |
|
| System.Int32 |
to |
|
Returns
deleteColsBySet(Int32[])
Declaration
public HighsWrapper14x.HighsStatus deleteColsBySet(int[] cols)
Parameters
| Type |
Name |
Description |
| System.Int32[] |
cols |
|
Returns
deleteRowsByMask(Boolean[])
Declaration
public HighsWrapper14x.HighsStatus deleteRowsByMask(bool[] mask)
Parameters
| Type |
Name |
Description |
| System.Boolean[] |
mask |
|
Returns
deleteRowsByRange(Int32, Int32)
Declaration
public HighsWrapper14x.HighsStatus deleteRowsByRange(int from, int to)
Parameters
| Type |
Name |
Description |
| System.Int32 |
from |
|
| System.Int32 |
to |
|
Returns
deleteRowsBySet(Int32[])
Declaration
public HighsWrapper14x.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 HighsWrapper14x.HighsStatus getBasicVariables(ref int[] basic_variables)
Parameters
| Type |
Name |
Description |
| System.Int32[] |
basic_variables |
|
Returns
getBasis()
Declaration
public HighsWrapper14x.HighsBasis getBasis()
Returns
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
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
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
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
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
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
getInfo()
Gets the current solution info.
Declaration
public HighsWrapper14x.SolutionInfo getInfo()
Returns
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
getIterationCount()
Declaration
public int getIterationCount()
Returns
| Type |
Description |
| System.Int32 |
|
GetModelStatus()
Declaration
public HighsWrapper14x.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 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
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
getSolution()
Declaration
public HighsWrapper14x.HighsSolution getSolution()
Returns
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
passLp(HighsWrapper14x.HighsModel)
Declaration
public HighsWrapper14x.HighsStatus passLp(HighsWrapper14x.HighsModel model)
Parameters
Returns
passMip(HighsWrapper14x.HighsModel)
Declaration
public HighsWrapper14x.HighsStatus passMip(HighsWrapper14x.HighsModel model)
Parameters
Returns
readModel(String)
Declaration
public HighsWrapper14x.HighsStatus readModel(string filename)
Parameters
| Type |
Name |
Description |
| System.String |
filename |
|
Returns
run()
Declaration
public HighsWrapper14x.HighsStatus run()
Returns
setBoolOptionValue(String, Int32)
Declaration
public HighsWrapper14x.HighsStatus setBoolOptionValue(string option, int value)
Parameters
| Type |
Name |
Description |
| System.String |
option |
|
| System.Int32 |
value |
|
Returns
setDoubleOptionValue(String, Double)
Declaration
public HighsWrapper14x.HighsStatus setDoubleOptionValue(string option, double value)
Parameters
| Type |
Name |
Description |
| System.String |
option |
|
| System.Double |
value |
|
Returns
setIntOptionValue(String, Int32)
Declaration
public HighsWrapper14x.HighsStatus setIntOptionValue(string option, int value)
Parameters
| Type |
Name |
Description |
| System.String |
option |
|
| System.Int32 |
value |
|
Returns
setOptionValue(String, String)
Declaration
public HighsWrapper14x.HighsStatus setOptionValue(string option, string value)
Parameters
| Type |
Name |
Description |
| System.String |
option |
|
| System.String |
value |
|
Returns
setSolution(HighsWrapper14x.HighsSolution)
Declaration
public HighsWrapper14x.HighsStatus setSolution(HighsWrapper14x.HighsSolution solution)
Parameters
Returns
setStringOptionValue(String, String)
Declaration
public HighsWrapper14x.HighsStatus setStringOptionValue(string option, string value)
Parameters
| Type |
Name |
Description |
| System.String |
option |
|
| System.String |
value |
|
Returns
writeModel(String)
Declaration
public HighsWrapper14x.HighsStatus writeModel(string filename)
Parameters
| Type |
Name |
Description |
| System.String |
filename |
|
Returns
Extension Methods