Click or drag to resize
LinearProgramming Constructor
Determines an optimal solution to the linear program { max cx : Ax <= b, x >= 0 }, where A is a M-by-N matrix, b is an M-length vector, and c is an N-length vector.

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public LinearProgramming(
	double[,] A,
	double[] b,
	double[] c
)

Parameters

A
Type: SystemDouble
the M-by-N matrix
b
Type: SystemDouble
the M-length RHS vector
c
Type: SystemDouble
the N-length cost vector
Exceptions
ExceptionCondition
ArgumentExceptionunless b[i] >= 0 for each i
ArithmeticExceptionif the linear program is unbounded
See Also