[R] help using R's linprog for LP

Medha Atre medha.atre at gmail.com
Fri Oct 23 21:02:03 CEST 2009


I found the reason. By default it puts a condition for x >= 0. Is
there a way to get rid of this condition?


On Fri, Oct 23, 2009 at 2:34 PM, Medha Atre <medha.atre at gmail.com> wrote:
> Hi,
> I am using R in one of my courses. I am trying to use R's linprog
> package to solve to formulate 2-class classification problem as Linear
> programming problem.
> For my formulation, I need to set to "cvec" to all 0s.
> I know the points are linearly separable so an optimal solution "x"
> does exist, which satisfies all the constraints.
> But given the constraints and setting "cvec" to all 0s it simply gives
> me an "x" of all 0s.
> How can I fix this?
> Medha

More information about the R-help mailing list