Documentation ¶
Index ¶
- func BlockDiag(blocks []*mat.Dense) *mat.Dense
- func DenseEye(size int, val float64) *mat.Dense
- func DenseEyeK(size int, val float64, k int) *mat.Dense
- func ToNegative(matDense mat.Matrix) mat.Matrix
- func ToNegativeDense(vecDense mat.Dense) *mat.Dense
- func ToNegativeVecDense(vecDense mat.VecDense) *mat.Dense
- func VStack(matrix []mat.Matrix) *mat.Dense
- func VecZeros(num int) mat.Matrix
- type Data
- type OSQPConfig
- func (o OSQPConfig) CleanUp()
- func (o OSQPConfig) Setup(p SparseMatrix, q []float64, a SparseMatrix, l []float64, u []float64)
- func (o OSQPConfig) Solution() (float32, float32)
- func (o OSQPConfig) Solve()
- func (o OSQPConfig) UpdateAMat(aNew []float64)
- func (o OSQPConfig) UpdateBounds(lNew, uNew []float64)
- func (o OSQPConfig) UpdateLinCost(qNew []float64)
- func (o OSQPConfig) UpdatePMat(pNew []float64)
- type SparseMatrix
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Data ¶
type Data struct { M int64 N int64 P_mat SparseMatrix Q []float64 A_mat SparseMatrix L []float64 U []float64 }
type OSQPConfig ¶
type OSQPConfig struct {
// contains filtered or unexported fields
}
func NewOSQP ¶
func NewOSQP() *OSQPConfig
func (OSQPConfig) CleanUp ¶
func (o OSQPConfig) CleanUp()
func (OSQPConfig) Setup ¶
func (o OSQPConfig) Setup(p SparseMatrix, q []float64, a SparseMatrix, l []float64, u []float64)
func (OSQPConfig) Solution ¶
func (o OSQPConfig) Solution() (float32, float32)
func (OSQPConfig) Solve ¶
func (o OSQPConfig) Solve()
func (OSQPConfig) UpdateAMat ¶
func (o OSQPConfig) UpdateAMat(aNew []float64)
func (OSQPConfig) UpdateBounds ¶
func (o OSQPConfig) UpdateBounds(lNew, uNew []float64)
func (OSQPConfig) UpdateLinCost ¶
func (o OSQPConfig) UpdateLinCost(qNew []float64)
func (OSQPConfig) UpdatePMat ¶
func (o OSQPConfig) UpdatePMat(pNew []float64)
type SparseMatrix ¶
type SparseMatrix struct {
// contains filtered or unexported fields
}
func NewCSCDenseMatrix ¶
func NewCSCDenseMatrix(matrix mat.Matrix) (SparseMatrix, error)
func NewCSCMatrix ¶
func NewCSCMatrix(matrix [][]float64) (SparseMatrix, error)
func NewDiagCSCMatrix ¶
func NewDiagCSCMatrix(size int, value float64) (*SparseMatrix, error)
func (SparseMatrix) Data ¶
func (s SparseMatrix) Data() []float64
func (SparseMatrix) Dimension ¶
func (s SparseMatrix) Dimension() (int, int)
func (SparseMatrix) Ind ¶
func (s SparseMatrix) Ind() []int
func (SparseMatrix) IndPtr ¶
func (s SparseMatrix) IndPtr() []int
func (SparseMatrix) NNZ ¶
func (s SparseMatrix) NNZ() int64
func (SparseMatrix) ToDense ¶
func (s SparseMatrix) ToDense() *mat.Dense
func (SparseMatrix) Transpose ¶
func (s SparseMatrix) Transpose(matrix [][]float64) [][]float64
Click to show internal directories.
Click to hide internal directories.