Documentation ¶
Overview ¶
Package clpwrapper contains simple wrappers to help with lanl/clp once go has an approximately-standard sparse matrix package this code can go into the clp itself
Index ¶
- func BuildAboveBounds(boundsVec []float64) []clp.Bounds
- func BuildAllNegativeBounds(nv int) []clp.Bounds
- func BuildAllPositiveBounds(nv int) []clp.Bounds
- func BuildBelowBounds(boundsVec []float64) []clp.Bounds
- func BuildEqualityBounds(boundsVec []float64) []clp.Bounds
- func COOToCLPPackedMatrix(matrix *sparse.COO) *clp.PackedMatrix
- func CSCToCLPPackedMatrix(matrix *sparse.CSC) *clp.PackedMatrix
- func ConvertBounds(varBounds mat.Matrix) ([]clp.Bounds, error)
- func GoNumMatrixToCLPPackedMatrix(matrix mat.Matrix) *clp.PackedMatrix
- func GoNumMatrixToCLPPackedMatrixAtTolerance(matrix mat.Matrix, tolerance float64) *clp.PackedMatrix
- func LoadSparseProblem(simp *clp.Simplex, C []float64, varBounds, ubBounds []clp.Bounds, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildAboveBounds ¶
BuildAboveBounds returns a vector of v->math.Inf(1) bounds
func BuildAllNegativeBounds ¶
BuildAllNegativeBounds returns a vector of math.Inf(-1)->0 bounds
func BuildAllPositiveBounds ¶
BuildAllPositiveBounds returns a vector of 0->math.Inf(1) bounds
func BuildBelowBounds ¶
BuildBelowBounds returns a vector of math.Inf(-1)->v bounds
func BuildEqualityBounds ¶
BuildEqualityBounds returns a vector of v<->v bounds
func COOToCLPPackedMatrix ¶
func COOToCLPPackedMatrix(matrix *sparse.COO) *clp.PackedMatrix
COOToCLPPackedMatrix converts a sparse.COO into a CoinPackedMatrix
func CSCToCLPPackedMatrix ¶
func CSCToCLPPackedMatrix(matrix *sparse.CSC) *clp.PackedMatrix
CSCToCLPPackedMatrix converts a sparse.CSC into a CoinPackedMatrix
func ConvertBounds ¶
ConvertBounds from a gonum mat into clp bounds
func GoNumMatrixToCLPPackedMatrix ¶
func GoNumMatrixToCLPPackedMatrix(matrix mat.Matrix) *clp.PackedMatrix
GoNumMatrixToCLPPackedMatrix converts a likely-sparse mat.Matrix into a CoinPackedMatrix
func GoNumMatrixToCLPPackedMatrixAtTolerance ¶
func GoNumMatrixToCLPPackedMatrixAtTolerance(matrix mat.Matrix, tolerance float64) *clp.PackedMatrix
GoNumMatrixToCLPPackedMatrixAtTolerance converts a likely-sparse mat.Matrix into a CoinPackedMatrix entries with absolute value less than tolerance are dropped
Types ¶
This section is empty.