線性規劃之飛機航班調度問題
1.Problem : Airplane Landing Problem
With human lives at stake, an air traffic controller has to schedule the airplanes that are landing at an airport in order to avoid airplane collision. Each airplane i has a time window
For example, if the time window of landing three airplanes are
Given n time windows, denoted as
Please formulate this problem as an LP, construct an instance and use GLPK or Gurobi or other similar tools to solve it.
2.建立線性規劃公式
3.具體實際問題
4個飛機,其時間窗口分別是[9:00-9:30] ,[10:00-11:00], [11:15-11:30], [12:00-12:15].
我們使用GLPK求解器求解:
var x1>=0;
var x2>=0;
var x3>=0;
var x4>=0;
var d>=0;
maximize z:d;
s.t. con1:x1-x2+d<=0;
s.t. con2:x2-x3+d<=0;
s.t. con3:x3-x4+d<=0;
s.t. con4:x1<=9.5;
s.t. con5:-x1<=-9;
s.t. con6:x2<=11;
s.t. con7:-x2<=-10;
s.t. con8:x3<=11.5;
s.t. con9:-x3<=-11.25;
s.t. con10:x4<=12.25;
s.t. con11:-x4<=-12;
end;
求解結果如下;
從求解器輸出結果我們可以知道,最優解