/*
* Patch for filter_var()
*/
if(!function_exists('filter_var')){
define('FILTER_VALIDATE_IP', 'ip');
define('FILTER_FLAG_IPV4', 'ipv4');
define('FILTER_FLAG_IPV6', 'ipv6');
define('FILTER_VALIDATE_EMAIL', 'email');
define('FILTER_FLAG_EMAIL_UNICODE', 'unicode');
function filter_var($variable, $filter, $option = false){
if($filter == 'ip'){
if($option == 'ipv4'){
if(preg_match("/(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})/", $variable, $matches)){
$variable = $matches[1];
return $variable;
}
}
if($option == 'ipv6'){
if(preg_match("/\s*(([:.]{0,7}[0-9a-fA-F]{0,4}){1,8})\s*/", $variable, $matches)){
$variable = $matches[1];
return $variable;
}
}
}
if($filter == 'email'){
if($option == 'unicode' || $option == false){
if(preg_match("/\s*(\S*@\S*\.\S*)\s*/", $variable, $matches)){
$variable = $matches[1];
return $variable;
}
}
}
}
}
Print Page - Error on seat percentage and gate utilization
Airline Mogul Forum
Airline Mogul => Bugs => Topic started by: Dora on October 11, 2007, 09:48:05 pm
-
For example, SDJ in Japan.
Airline: Flights: Seats: Gates: Utilisation:
JYONGRI 1 44.52% 1 100%
TigerShingAir 1 39.98% 1 90%
Chosun Rising Sun Airlines 1 15.50% 1 40%
These 3 airlines uses a DC3 with 1 frequency. They all have 1 gate there.
Why they have different percentage seats provided and gate utilization rate?
-
JYONGRI has 10 flights to SDJ. Thus, 100% gate utilization at SDJ. TigerShingAir has 9 flights (90%) and Chosun Rising has 3.5 flights (40%).
22.5 flights * 2 * 28 = 1260 seats total
For JYONGRI, (10 * 2 * 28 ) / 1260 = 44.44%
For TigerShing, (9 * 2 * 28 ) / 1260 = 40.00%
For Chosun, (3.5 * 2 * 28 ) / 1260 = 15.56%
My numbers are a little off, but it looks fine to me.
-
Oh...I have missed sth...sorry
But for me it's a bit hard to understand 1 flight = 10 frequencies...
-
Oh...I have missed sth...sorry
But for me it's a bit hard to understand 1 flight = 10 frequencies...
If JYONGRI had split it out to 10 separate flights (all frequency = 1), it would've shown up as 10 / 100%.