cplex 获取对偶问题的极射线时,需要使用函数DualFarkas
官方描述为:
public virtual double DualFarkas(
IConstraint[] rng,
double[] y
)
参数rng表示
Type: ILOG.Concert.IConstraint[]
Array of length getNrows where constraints corresponding to the values in y are returned.
参数y表示
Type: System.Double[]
array of length getNrows.
Return Value
The value of y'b - y'A z for vector z defined such that z[j] = ub[j] if y'A[j] > 0 and z[j] = lb[j] if y'A[j] < 0 for all variables j.
参数rng是问题的约束,那么y是什么数组呢或者说调用DualFarkas需要传入哪两个参数?