I played around a bit with the original 'lp-solve' program --- i.e., not the R package but the program to be downloaded from Sourceforge ---, at least version 5.5.0.15 through its IDE. I was not even able to reproduce the example on semi-continuous variables in the reference documentation at <http://lpsolve.sourceforge.net/5.5/>.
It appears as if a bug has been introduced in newer versions of 'lp-solve' that prevent these semi-continuous variables from being handled correctly. So maybe it's not the fault of the R package 'lpsolve' and can only be amended by the 'lp-solve' team itself. Hans Werner pragathichi wrote: > > How to define bounds for a semi continous variable in lp_solve. > Min 5x1 +9x2 +7.15x3 +0.1x4 > subject to > x1+x2+x3+x4=6.7 > x1+x4 <= 6.5 > And x3 can be 0 or greater than 3.6 > hence x3 is a semi continous variable > how to define bounds as well as semicontinous function because using > set.semicont and set. bound simantaneously doesn't seem to work.Thanks in > advance for the help > -- View this message in context: http://www.nabble.com/Semi-continous-variable--define-bounds-using-lpsolve-tp25530668p25530901.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.