Skip to main content

Questions tagged [r]

For questions about solving Operations Research problems using the R programming language.

2 votes
1 answer
95 views

I have a dataset that contains IDs along with their corresponding minimum and maximum values. Here’s a sample of the data: ...
Shibaprasad's user avatar
2 votes
3 answers
288 views

I am trying to write an MILP to do a grouping (clustering) given one difference condition. Suppose, I have the following elements in a list: 1,2,3,4,6,8,9,10. My goal here is to group them so that the ...
Shibaprasad's user avatar
1 vote
0 answers
77 views

I have a working - and long - R code to generate a mps file to be read by cplex. Because I work with large instances I am finding troubles (too much time) in producing a large mps file. Is there a way ...
Di Al's user avatar
  • 11
0 votes
0 answers
105 views

I'm using the IpSolve package to solve a problem to optimize the assignment (minimum distance) between sellers (rows)and customers (columns) using Rstudio. The problem I faced when using lp/lp....
Angel Diaz's user avatar
2 votes
1 answer
243 views

I need to determine the global optimum results of this objective function. I define the problem by minimizing the squared difference as represented in function $f(q_1,q_2,\alpha_1,\alpha_2)$ The ...
Mrinmoy Chakraborty's user avatar
2 votes
0 answers
116 views

I am trying to simulate a supply chain scenario. Demand is random (e.g. between 100-400 units) and lead time vary 2 to 4 days for each supply. The holding cost(h), penalty cost (p) for lost_sales, ...
Roger's user avatar
  • 21
2 votes
2 answers
384 views

Assume I have an infinite number of staff/supply. I have a table of how much time in hours needs to be spent on certain tasks: Task Demand A 0.75 B 0.8 C 0.65 D 0.7 E 0.6 F 0.65 And the tasks can ...
Elis's user avatar
  • 23
2 votes
0 answers
94 views

Given two point clouds I want to find for each point from the first point cloud the nearest neighbour from the second point cloud. Also, each pair of neighbours should be unique. The solution was ...
mri's user avatar
  • 121
2 votes
2 answers
451 views

Not sure if this question is appropriate, but there is some error in my code which I just cannot seem to find. Probably been staring myself blind to this, so I could really use some help. It is a MILP,...
user9867's user avatar
2 votes
1 answer
73 views

I would like your valuable opinion on one issue: I created a decision matrix considering two criteria and 10 alternatives, as below. My problem involves determining the optimal number of clusters from ...
Antonio's user avatar
  • 319
3 votes
2 answers
344 views

I have two data frames, the first indicating customer locations and the second indicating facility locations. I want to calculate the average distance of all customers to the closest facility location ...
user9867's user avatar
2 votes
0 answers
39 views

I'm using the TOPSIS and VIKOR multicriteria methods to generate rankings according to the decision matrix that I call a database. I would like to know if the ...
Antonio's user avatar
  • 319
1 vote
2 answers
256 views

For a linear optimization problem I want to include a dataframe (d_ij) which has binary variables, 1 if customer i is located within the assignable distance of facility j, 0 otherwise. So unless d_ij =...
user9867's user avatar
2 votes
2 answers
87 views

I would like to forecast the car rental (count time series). Given hourly integer valued car rentals for a month's period from 24th september to 24th October. I need to forecast car rental demand ...
Jose_Peeterson's user avatar
2 votes
2 answers
133 views

The code below is generating the mode value considering the columns Method1, Method2, Method3...
Antonio's user avatar
  • 319

15 30 50 per page