We trying to solve the next linear optimization problem:
We have:
- Pij, i=1÷3, j=1÷30, Pij are positive
- Bi, i=1÷3, integer positive
The searching result is matrix of 3 x 30 of binary values Xij with next conditions:
Constraints:
- For each j =1÷30, Sum (by index of i=1÷3)Xij=1
- For each i =1÷3, Sum by index of (j=1÷3o)Xij≤Bi
Objective: Optimize:
- Maximize (Sum (by index of i=1÷3) Sum (by index of j=1÷30) Pij *Xij)
Haw we can solve the problem in the R?
I tried to do with lpsolve
package. The received values is not correct.
Is there are limitation in linear programing solutions for number of constraints in R?
In real situation our cases are more than 25000 (the j index is 1÷30000)
Thank you in advance,
Boriana