Solve given (non-integer) linear programming problem using the Simplex Algorithm (Simplex Method).
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 3.4.1.20180605-33-CaRLSharp
Syntaxpublic static SolveLPResult SolveLP(
Mat func,
Mat constr,
Mat z
)
Public Shared Function SolveLP (
func As Mat,
constr As Mat,
z As Mat
) As SolveLPResult
public:
static SolveLPResult SolveLP(
Mat^ func,
Mat^ constr,
Mat^ z
)
static member SolveLP :
func : Mat *
constr : Mat *
z : Mat -> SolveLPResult
OpenCvSharp.Cv2.SolveLP = function(func, constr, z);
Parameters
- func
- Type: OpenCvSharpMat
This row-vector corresponds to \f$c\f$ in the LP problem formulation (see above).
It should contain 32- or 64-bit floating point numbers.As a convenience, column-vector may be also submitted,
in the latter case it is understood to correspond to \f$c^T\f$. - constr
- Type: OpenCvSharpMat
`m`-by-`n+1` matrix, whose rightmost column corresponds to \f$b\f$ in formulation above
and the remaining to \f$A\f$. It should containt 32- or 64-bit floating point numbers. - z
- Type: OpenCvSharpMat
The solution will be returned here as a column-vector - it corresponds to \f$c\f$ in the
formulation above.It will contain 64-bit floating point numbers.
Return Value
Type:
SolveLPResult
See Also