Advertisement

R语言:解决线性规划问题

阅读量:

线性规划求解:

本部分采用的是R语言中的Rglpk包进行实现。

该包中包含的核心函数为:
Rglpk_solve_LP((obj, mat, dir, rhs, bounds = NULL, types = NULL, max = FALSE,control = list(), ...))
关于各参数的具体功能说明,可参考下表所示内容:

obj a numeric vector representing the objective coefficients.
mat a numeric vector or a (sparse) matrix of constraint coefficients. If the optimization problem is unconstrained then a matrix of dimension 0 times the number of objective variables is required.
dir a character vector with the dire

全部评论 (0)

还没有任何评论哟~