{//% unless portal.user.is_agent %} Tickets
Welcome
Login Submit a Ticket News {//% endunless %}

Crew Pairing Optimizer

The Pairing Optimizer is a tool from where you can auto-generate pairings with a certain level of optimization.


You need to enable the Pairing Optimizer in the User Group in order to see it. Select the Miscellaneous dropdown, then grant access to PairingOptimization.


Select Crew Pairing Optimization

Click the Crew Pairing Optimization button in the lower Gantt window to access it.


Crew Complement

The Crew Complement must have the HR type checked corresponding to the Complement. If only Pilot or Cabin, check the corresponding field. 

 

Note: Versions prior to 21.5 need to have both options checked for combined pairings.


Select a Period


Field
Description
LoadThis loads data directly from the database.
GanttThis uses the Aircraft for the zoomed period you have loaded into the Gantt. The flights used for the optimization is controlled by the filter in General options.


Template


Multiple templates can be created. We now refer to the section inside the ‘Template’ border of the tool.


Template Creation Steps

  1. Click the Add button.
  2. Enter a template name under the Name field.
  3. Click the Save button.


Template Deletion Steps

  1. Select a template to be deleted from the dropdown under the Select field.
  2. Click the Delete button.
  3. Click the Save button.


Copy a Template Steps

You can copy an existing Template by clicking the Copy button. A copy is created with the original name + "- Copy".

Rename the template then click the Save button.


Parameters

Parameters should be always configured under a template. Click the Select field within the Template section and a template name should be visible.


Here are the options in the Parameters section:


Algorithm Options


Field
Description
Generation OptionSelect the type of pairings to be generated:
  • All Pairings - e.g. CPH-ARN-OSL-CPH
  • Round Trip Pairings - e.g. CPH-ARN-CPH. If you want CPH-ARN-CPH-CPH-ARN-CPH on the same day, you can use the Create longer pairing on Run option.


"Round Trip Pairings" option might have a substantially better time performance compared to the ‘All Pairings’ option.

Parallel Legality CheckThe resulting pairings after the generation phase will be checked in parallel, which most of the type translates into a better time performance of the legality check process.
Filter No Positions

This filter is used if you don't allow some flights from you own timetable to be used as positioning/deadhead flights. The flights that are used for positioning/deadheading will get a roster designator from the Leg Filter.

Apply N-OC Legalities on RunThis option includes the legality in the run. This is similar to the run option "Apply Legalities".
Add Deadheads On Run

A positioning sector will be created if the pairing is incomplete after the pairing generation and/or legality checks.

The system will create a Reference activity of one hour length and add it to the pairing with minimum rest to the next flight.

The user need to correct that kind of pairings manually.

Note: The connection time is controlled by the "Max Layover time".

Create Longer Pairings On RunWhen Run button is checked and Round Trip Pairings option has been selected under the ‘Generation Option’, longer pairings will be created.


Generation Options

Field
Description
FilterFilter the flights from the loaded schedule to used by the tool. This is a Leg Filter.

Note: You will get a better generation if you apply a filter.
HR TypesThis is a mandatory field. Select the Human Resources Types to be used by the tool, such as Pilots, Cabin Crew, etc.

HR Types come from HR Types.

Notes
  • To be able to make separate pairings for Pilot and Cabin, you need to create rules. Refer to How to Make Pairings for Cabin Crew and Flight Deck Crew article.
  • HR Types Subcode will be used in the paring name. The recommended code for Pilots is P and Cabin is C. This means that the pairing name will start with P or C. If both are selected, the pairing name will start with F. These pairing names are overruled by the Pairing Name Convention.
  • If you select a HR type that isn't matched in the crew complement, no pairings are created.
BasesThis is a mandatory field. This selected bases and they must remain the same at any time point within the flight schedule used.
Ignore Covered ActivitiesThis ignores the flights, from the used flight schedule, which are covered by pairings saved into the database.
Use Covered Activities Only, For Positioning

Only uses a flight for positioning if it is already covered.


It considers the pairings already created in the Gantt before the optimizer generates any, so that the user can select to not "double cover" these flights.


Notes

  • The Optimizer will use own flights for positioning in first hand. If it can not generate pairings which cover all flights, you will see this under uncovered flights. These uncovered flights have the option to add DHs/dummy positioning to cover.
  • DH on own flights are controlled by:
    • Max. Sit Time - The DH must be inside min and max sit time.
    • Max Positions/Activity - Must be greater than zero.
    • Add Deadheads On Run - Selected.
Max Carry In Search [h]This defines the period, in hours, before the schedule to be optimized, where the tool should look for flights to cover carry in.
Max Carry Out Search [h]This defines the period, in hours, after the schedule to be optimized, where the tool should look for flights to cover carry outs.


Pairing Parameters


Field
Description
Max Pairing Length

Maximum allowed pairing length from first departure time to last arrival time.


Note: If the parameter to cover more than one day will increase the processing time dramatically.

Max Duty Time [h]Maximum allowed duty time from check-in to check-out.
Max Duties

Maximum number of duties per day allowed within a pairing.

If you want a two-day pairing, you shall use Max duties in "Longer Pairings".

Max Sectors/DutyMaximum number of flights a duty can contain.

Note: Must be greater than one otherwise, you will get the error "Sequence contains no elements".
Min Sit Time [min]Minimum sitting time/transition time allowed when there is a tail change.

Note: Sit time, also known as Turn Around Time, is the time between STA and STD.
Max Sit Time [min]Maximum sitting time allowed.

Note: Must be greater or equal sit time (connection time).
Min Layover Time [min]Minimum layover time allowed.

Note: Must be greater than Maximum sit time (connection time).
Max Layover TimeMaximum layover time allowed.

Note: Must be greater or equal to Min Layover time.
Max Positions Outside of FDP/PairingDefines how many flights within a pairing can be used for positioning outside FDP for crews.
Hotel Reference Activity fill-inThis option will fill in hotel activities in the pairing if the break is larger than the Min layover time


Connection Times

The Connection Times can be specified to a very detailed level. By right-click in the grid, you can add, delete, and move rows.

The conditions will read from top and down. The first condition met will apply.


Field
Description
Act Type 1 and Act Type 2This specifies the connection time between Activity 1 and 2.

Flight Type 1 and 2This specifies the connection time between Flight Type 1 and 2.

StationsThe connection time at a station.
A/C Type 1 and 2This specifies the connection time between A/C Type 1 and 2.

Apply only on AC changeCheck this if the rule only apply to Aircraft change (Tail change).
Flight No 1 and 2Both of these columns may contain comma-separated lists of FlightIDs: 'Flight No 1' may contain a list of incoming flights, and 'Flight No 2' may contain a list of outgoing flights.

 

If 'Flight No 1' contains a comma-separated list of one or more flight IDs, then that means that the connection time-constraint only applies to connections where the incoming flight is one of the flights in the list. If 'Flight No 1' is left empty, then the applicability of the connection time-constraint is not modified.

 

Similarly, if 'Flight No 2' contains a comma-separated list of flight IDs, then that means that the connection time-constraint only applies to connections where the outgoing flight is one of the flights in the list. If 'Flight No 2' is left empty, then the applicability of the connection time-constraint is not modified.

 

Example:

If 'Flight No 1' is set to "AB001" and 'Flight No 2 is set to "AB002, AB003", then the connection time-constraint only applies to connections where the incoming flight is "AB001" and the outgoing flight is either "AB002" or "AB003".

Min / Max Time

Min/max connection time in hh:mm.


Be careful not to use a very high max connection, this will cause the Optimizer to have a very long processing time.

Note: You need to have a realistic value; otherwise, no pairings will be generated.

The default max connection time should cover the majority of your pairings, e.g. 01:00.

If you have individual flights with higher connection time, you should create a separate rule.

Deadhead Time before DepThis parameter is only available in older versions.

This parameter control the max. connection time between a Deadhead and a flight before Departure.

Notes
  • Format is Day:hours:minutes.
  • Deadhead time before departure must greater or equal to "minimum sit time".
  • It is enforced that the deadhead placement is within the time time span of "min sit time" or "max layover".
Deadhead Time after ArrThis parameter is only available in older versions.

This parameter control the max. connection time between a flight and a deadhead after Arrival.

Notes
  • Format is Day:hours:minutes.
  • Deadhead time before departure must greater or equal to "minimum sit time".
  • It is enforced that the deadhead placement is within the time time span of "min sit time" or "max layover".


Optimization Options


Field
Description
Max Positions/ActivityDefines the maximum allowed number of set of crews to be positioned on a flight.

Notes
  • This parameter shall be used carefully. Normally, it should be zero if it is a solution with no positioning. If the solution contains positioning the parameter must be greater than zero; otherwise, you will get a warning "infeasible solution".
  • Positions are on own flights. You will need a Roster Designator for positioning for this to work correct.
  • This parameter works together with:
    • Use Covered Activities Only, For Positioning
    • Max. Sit Time
    • Add Deadheads On Run.
Max Vehicle Change Time With Penalty [min]Defines the maximum time in minutes of connection until a tail change will be penalized.

Note: The penalty will set under 'Cost Parameters'.

Example of Usage
If the value is set to 60, it represents that any connection which will involve a tail change for the crew will be penalized if it is under 60 minutes.

Use Crew Sets Penalty’ 

& ‘Base’ 

& ‘Max Head Count SCS W/O Penalty

Decides if headcount penalty should be used.


If the head count penalty is used, there is the option to select how many head counts are allowed for each base without penalty.


Notes

  • The penalty will be set under ‘Cost Parameters’.
  • SCS W/O Penalty= Simultaneous Crew Sets Without Penalty.
    • E.g. If we have 2 bases and we want 1 CP at base1 and 2 CP at base2. Then SCS W/O Penalty will be 1 for base1 and 2 for base2.
Time Window Sizedd:hh:mm


Cost Parameters

Note: The costs are mathematical costs. This mean that a high number is a high penalty, it doesn't relate to money or time.


Field
Description
Pairing CostMathematical cost of a pairing.
Position Penalty/MinuteMathematical cost per minute when covering a flight with more than one set of crews.
Sit Connection/MinuteMathematical cost per minute of a sit connection.
Layover Cost/MinuteMathematical cost per minute of a layover.
Fix Cost/LayoverFix mathematical cost per layover.
Position PenaltyMathematical cost for penalizing flights, which are covered with more than one set of crews.
A/C Change PenaltyVehicle Change Time With Penalty [min].
D/H PenaltyMathematical cost for penalizing deadheads.
SCS PenaltyMathematical cost for penalizing head counts, which over the threshold defined in ‘Max Head Count W/O Penalty’.


Virtual and Real Cost

With the introduction of version 21.6, it is possible to use Virtual and Real Cost in the optimization. fixed cost accrued by each pairing. We recommend 1000 or higher.


Longer Pairing


Field
Description
Pairing Length [h]Defines the maximum allowed pairing length.

Note: This parameter must be equal or greater than "Pairing Parameters - Max Duty Time".
Max Duties

Defines Maximum number of duties allowed in the pairing. This parameter currently works together with the "Paring Parameter - Max pairing length".

E.g. if Max Duties is 2 and "Paring Parameter - Max pairing length" is 48, then you will get a 2 days parting.

No Layover After BaseDecides if there can be a layover at the base.
Use Time WindowsTime Windows are used to speed up the optimization and is in general needed to get a solution within a reasonable time frame (if the input data contains a large number of flights, or the period over which we optimize is long).
Time Window SizeDD:HH:MM


Legality Rules Parameter

Rules Selection

 In the dropdown under the Legality Groups, one or multiple rules belonging to different groups can be shown under the Available Rules section label after the Show Rules button is clicked. The rules to be used by the tool should be marked and moved to the right side list (‘Rules To Use’) via the controls in between lists.


Max FDP Rules

If FDP Rules are used (if ‘Max Positions Outside Of FDP/Pairing’ from ‘Pairing Parameters’ is greater than zero) then the rule(s), which constraints maximum FDP should be moved from ‘Selected Rules’ to ‘Rules To Use’.


Built In Rules

You can use both N-OC's legalities and built in rules. This is a high-performance boost for CPO if built in rules are used instead of N-OC's legalities. 


Field
Description
Min Rest

Min rest Home Base in minutes. Rest away from Home Base.

Note: Using the Min Rest settings the optimizer should be able to mimic the 10- hour rest rule in FAR117.

Min FDP

Available tables from the company legality.


Setting the appropriate table in Max FDP, the optimizer should be able to mimic the basic Max FDP rule in FAR117, with acclimatized crew flying non transatlantic flights.

Note: Additional FDP rules using different tables for different flight circumstances are not yet available.

Meal Stop

Meal Time. Max FDP Before Meal.

Consecutive Night DutiesMax Sectors in Consecutive Night Duties.

Note: The Optimizer can be made to mimic the FAR117.27 rule, about max consecutive night duties.

Max Consecutive Night

Night Duty Start

Night Duty End
Max Flight TimeSetting up Max Flight Time with the appropriate table, the Optimizer should be able to mimic the rule regarding max flight time in FAR117.


Note: In the presence of union, and/or other rules, the Mimer Legality Check might still be needed in addition to this. In cases with no transatlantic flights and no other limiting rule sets, a legal solution should be provided without clicking the Apply Legalities button, given that the parameters in built in rules are set up correctly.

Deadheads


Field
Description
Load from Dataservice

This option will allow you to read Deadhead flights from a central NB database.


Contact the Support Desk for details.

AirlineAirlines to read from the dataservice.
Flight NumberFlight numbers to read from the dataservice.


CPO Runs

To run the tool either click the Run button  or go step-by-step with the buttons below the Run button. The process can be stopped by clicking the Stop button at any point.


Run

This is doing a complete run based on user inputs.

 

When this button is clicked, the pairing generation takes place, then legalities are applied on the generated pairings. If Add Deadheads On Run checkbox under ‘Algorithm Options’ is checked, the deadheads will be added to create pairings with the uncovered legs. Otherwise, it will jump to the optimization phase. If Round Trip Pairings is selected as a generation option and Create Longer Pairings On Run is checked (both can be found in the ‘Algorithm Options’ tab), the longer pairings out of the round trip pairings will be created.


Generate Pairings

Generates pairings based on the user inputs. Pairings generated here might be illegal.


Apply Legalities

Used for applying legalities on the generated pairings. This works only after Generate Pairings button has been clicked.


Add Deadheads

Used for adding deadheads on the uncovered legs. This button can be used either after ‘Generate Pairings’ or after ‘Apply Legalities’.


Optimize

Used for optimizing pairings. It can be used either after ‘Generate Pairings’, after ‘Apply Legalities’, or after ‘Add Deadheads’.


Create Long Pairings

Used to create longer pairing out of round trips pairings: Three stages take place:

  • Pairing Generation 
  • Legality Checks 
  • Pairing Optimization.


This button can only be used after Optimize button if the generation option is ‘Round Trip Pairings’.


Stop

Used to cancel any process within the tool. Button is available only if a process is going on.


Statistics

When the run has finished, you will see the result in the Statistics window. If you have two parameter settings, you will see statistics for each line.



Field
Description
RowSequence number if the run is repeated.
ActivitiesNumber of all loaded flights.
Generated PairingsThe following options are available:
  • P - All Pairings
  • I P
  • R/T - Roundtrip
  • I R/T
  • DH
Uncovered ActivitiesNumber of uncovered activities.
Generation TimeInitial generation time.
Mimer TimeLegality calculation time.
Opt TimePairing Optimization time.
Pairing Length DataNumber of duties. Max/Avg and Min hours.
Flights/PairingAverage number of flights per pairing.
Duties/PairingAverage number of duties per pairing.
Duty DataNumber of duties. Max/Avg and Min hours.
BLH UTCTotal BLH in UTC per Base. Pairing with Max/Avg/Min.
BLH LocalTotal BLH in Local per Base. Pairing with Max/Avg/Min.
Layover Length DataNumber of layovers. Max/avg/min length.
Flights with Position DataNumber of flights used for positioning.
A/C Change Connection DataNumber pairings with aircraft change.
Penalized A/C Change Connection DataNumber pairings with aircraft change that has been penalized.
Sit Connection DataTurn around times. Number of TA/Man/Avg/Min. 
Additional LegsNumber of Deadheads/Carry in/Carry out.
Production DaysTotal production days per base.


Print Statistics

There is currently no option to print the statistics. You can click on a row so it is highlighted in blue, press CTRL+C to copy and then paste into Excel or Word using CTRL+V or the paste command from the menu.


Load the Gantt

You can either click the Clear Statistics or Show On Gantt buttons. If you make a new run without saving, the new result overwrites the previous result.


Example Settings

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.