Advanced Linear Programming

buli

New member
Joined
Nov 17, 2014
Messages
2
Hi all,
I'm working on a linear programming problem and got stuck.
The problem deals with academic tests schedule and one of the main methods I want to consider is the amount of days there are to study for each test.
The question is: how can I know the amount of days to study for each test if my decision variable is Xct (binary - gets 1 if exam c takes place at the time-slot t)
(The target is to calculate the margin between the "t" of two X's that equals 1.
 
Hi all,
I'm working on a linear programming problem and got stuck.
The problem deals with academic tests schedule and one of the main methods I want to consider is the amount of days there are to study for each test.
The question is: how can I know the amount of days to study for each test if my decision variable is Xct (binary - gets 1 if exam c takes place at the time-slot t)
(The target is to calculate the margin between the "t" of two X's that equals 1.

Assuming time slot is connected, that is a consecutive number of days, I think you are making the problem too complicated: Just use Julian dates
D0 = beginning day of time slot t
L = length of time slot t
d = days until test is scheduled
D = date of test minus d [Date of today]
N = number of days to study

Something like
Code:
t = D - D[SUB]0[/SUB];
if(t<0){
   N=L;
}else if(t>L-1){
   N=0;
}else{
   N = L - t;
}
 
Ishuda

Thanks for the answer!
What you describe here is programming with a programming language. The problem is that you cant use "if" in linear programming...
 
Thanks for the answer!
What you describe here is programming with a programming language. The problem is that you cant use "if" in linear programming...

What I was suggesting is that using linear programming may be going overboard. However, if you must use linear programming to solve the problem, that is of no help.
 
Top