Table of Contents

Method SolveLP

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

SolveLP(InputArray, InputArray, OutputArray)

Solve given (non-integer) linear programming problem using the Simplex Algorithm (Simplex Method).

public static SolveLPResult SolveLP(InputArray func, InputArray constr, OutputArray z)

Parameters

func InputArray

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 InputArray

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 OutputArray

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.

Returns

SolveLPResult