Class HighsWrapper15x.HighsLpSolver
Inheritance
System.Object
HighsWrapper15x.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.Highs15x.dll
Syntax
public class HighsLpSolver : IDisposable
Constructors
HighsLpSolver()
Declaration
Methods
addCol(Double, Double, Double, Int32[], Double[])
Declaration
public HighsWrapper15x.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 HighsWrapper15x.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 HighsWrapper15x.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 HighsWrapper15x.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(HighsWrapper15x.HighsModel, ref HighsWrapper15x.HighsSolution, ref HighsWrapper15x.HighsBasis, ref HighsWrapper15x.HighsModelStatus)
Declaration
public static HighsWrapper15x.HighsStatus call(HighsWrapper15x.HighsModel model, ref HighsWrapper15x.HighsSolution sol, ref HighsWrapper15x.HighsBasis bas, ref HighsWrapper15x.HighsModelStatus modelstatus)
Parameters
Returns
changeCoeff(Int32, Int32, Double)
Declaration
public HighsWrapper15x.HighsStatus changeCoeff(int row, int col, double value)
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
System.Int32 |
col |
|
System.Double |
value |
|
Returns
changeColBounds(Int32, Double, Double)
Declaration
public HighsWrapper15x.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 HighsWrapper15x.HighsStatus changeColCost(int col, double cost)
Parameters
Type |
Name |
Description |
System.Int32 |
col |
|
System.Double |
cost |
|
Returns
changeColsBoundsByMask(Boolean[], Double[], Double[])
Declaration
public HighsWrapper15x.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 HighsWrapper15x.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 HighsWrapper15x.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 HighsWrapper15x.HighsStatus changeColsCostByMask(bool[] mask, double[] cost)
Parameters
Type |
Name |
Description |
System.Boolean[] |
mask |
|
System.Double[] |
cost |
|
Returns
changeColsCostBySet(Int32[], Double[])
Declaration
public HighsWrapper15x.HighsStatus changeColsCostBySet(int[] cols, double[] costs)
Parameters
Type |
Name |
Description |
System.Int32[] |
cols |
|
System.Double[] |
costs |
|
Returns
changeColsIntegralityByRange(Int32, Int32, HighsWrapper15x.HighsIntegrality[])
Declaration
public HighsWrapper15x.HighsStatus changeColsIntegralityByRange(int from_col, int to_col, HighsWrapper15x.HighsIntegrality[] integrality)
Parameters
Returns
changeObjectiveSense(HighsWrapper15x.HighsObjectiveSense)
Declaration
public HighsWrapper15x.HighsStatus changeObjectiveSense(HighsWrapper15x.HighsObjectiveSense sense)
Parameters
Returns
changeRowBounds(Int32, Double, Double)
Declaration
public HighsWrapper15x.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 HighsWrapper15x.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 HighsWrapper15x.HighsStatus changeRowsBoundsBySet(int[] rows, double[] lower, double[] upper)
Parameters
Type |
Name |
Description |
System.Int32[] |
rows |
|
System.Double[] |
lower |
|
System.Double[] |
upper |
|
Returns
clearModel()
Declaration
public HighsWrapper15x.HighsStatus clearModel()
Returns
clearSolver()
Declaration
public HighsWrapper15x.HighsStatus clearSolver()
Returns
deleteColsByMask(Boolean[])
Declaration
public HighsWrapper15x.HighsStatus deleteColsByMask(bool[] mask)
Parameters
Type |
Name |
Description |
System.Boolean[] |
mask |
|
Returns
deleteColsByRange(Int32, Int32)
Declaration
public HighsWrapper15x.HighsStatus deleteColsByRange(int from, int to)
Parameters
Type |
Name |
Description |
System.Int32 |
from |
|
System.Int32 |
to |
|
Returns
deleteColsBySet(Int32[])
Declaration
public HighsWrapper15x.HighsStatus deleteColsBySet(int[] cols)
Parameters
Type |
Name |
Description |
System.Int32[] |
cols |
|
Returns
deleteRowsByMask(Boolean[])
Declaration
public HighsWrapper15x.HighsStatus deleteRowsByMask(bool[] mask)
Parameters
Type |
Name |
Description |
System.Boolean[] |
mask |
|
Returns
deleteRowsByRange(Int32, Int32)
Declaration
public HighsWrapper15x.HighsStatus deleteRowsByRange(int from, int to)
Parameters
Type |
Name |
Description |
System.Int32 |
from |
|
System.Int32 |
to |
|
Returns
deleteRowsBySet(Int32[])
Declaration
public HighsWrapper15x.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 HighsWrapper15x.HighsStatus getBasicVariables(ref int[] basic_variables)
Parameters
Type |
Name |
Description |
System.Int32[] |
basic_variables |
|
Returns
getBasis()
Declaration
public HighsWrapper15x.HighsBasis getBasis()
Returns
getBasisInverseCol(Int32, Double[], ref Int32, Int32[])
Declaration
public HighsWrapper15x.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 HighsWrapper15x.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 HighsWrapper15x.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 HighsWrapper15x.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 HighsWrapper15x.HighsStatus getBoolOptionValue(string option, out int value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.Int32 |
value |
|
Returns
getDoubleOptionValue(String, out Double)
Declaration
public HighsWrapper15x.HighsStatus getDoubleOptionValue(string option, out double value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.Double |
value |
|
Returns
getInfinity()
Declaration
public double getInfinity()
Returns
Type |
Description |
System.Double |
|
getInfo()
Gets the current solution info.
Declaration
public HighsWrapper15x.SolutionInfo getInfo()
Returns
getIntOptionValue(String, out Int32)
Declaration
public HighsWrapper15x.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 HighsWrapper15x.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 HighsWrapper15x.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 HighsWrapper15x.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 HighsWrapper15x.HighsSolution getSolution()
Returns
getStringOptionValue(String, out String)
Declaration
public HighsWrapper15x.HighsStatus getStringOptionValue(string option, out string value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.String |
value |
|
Returns
passColName(Int32, String)
Declaration
public HighsWrapper15x.HighsStatus passColName(int col, string name)
Parameters
Type |
Name |
Description |
System.Int32 |
col |
|
System.String |
name |
|
Returns
passLp(HighsWrapper15x.HighsModel)
Declaration
public HighsWrapper15x.HighsStatus passLp(HighsWrapper15x.HighsModel model)
Parameters
Returns
passMip(HighsWrapper15x.HighsModel)
Declaration
public HighsWrapper15x.HighsStatus passMip(HighsWrapper15x.HighsModel model)
Parameters
Returns
passRowName(Int32, String)
Declaration
public HighsWrapper15x.HighsStatus passRowName(int row, string name)
Parameters
Type |
Name |
Description |
System.Int32 |
row |
|
System.String |
name |
|
Returns
readModel(String)
Declaration
public HighsWrapper15x.HighsStatus readModel(string filename)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
Returns
run()
Declaration
public HighsWrapper15x.HighsStatus run()
Returns
setBoolOptionValue(String, Int32)
Declaration
public HighsWrapper15x.HighsStatus setBoolOptionValue(string option, int value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.Int32 |
value |
|
Returns
setDoubleOptionValue(String, Double)
Declaration
public HighsWrapper15x.HighsStatus setDoubleOptionValue(string option, double value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.Double |
value |
|
Returns
setIntOptionValue(String, Int32)
Declaration
public HighsWrapper15x.HighsStatus setIntOptionValue(string option, int value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.Int32 |
value |
|
Returns
setOptionValue(String, String)
Declaration
public HighsWrapper15x.HighsStatus setOptionValue(string option, string value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.String |
value |
|
Returns
setSolution(HighsWrapper15x.HighsSolution)
Declaration
public HighsWrapper15x.HighsStatus setSolution(HighsWrapper15x.HighsSolution solution)
Parameters
Returns
setStringOptionValue(String, String)
Declaration
public HighsWrapper15x.HighsStatus setStringOptionValue(string option, string value)
Parameters
Type |
Name |
Description |
System.String |
option |
|
System.String |
value |
|
Returns
writeModel(String)
Declaration
public HighsWrapper15x.HighsStatus writeModel(string filename)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
Returns
writeOptions(String)
Declaration
public HighsWrapper15x.HighsStatus writeOptions(string filename)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
Returns
writeOptionsDeviations(String)
Declaration
public HighsWrapper15x.HighsStatus writeOptionsDeviations(string filename)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
Returns
writeSolutionPretty(String)
Declaration
public HighsWrapper15x.HighsStatus writeSolutionPretty(string filename)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
Returns
Extension Methods