I am trying to display the values of x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, and x12 in my output following the successful running of this code. How can I do that? Thanks in advance!
$eolCom //
$onSymList
Set SR “Seating Relationships”
/First-Class-Seat-Pitch
First-Class-Seat-Width
First-Class-Seat-Thickness
Premium-Economy-Seat-Pitch
Premium-Economy-Seat-Width
Premium-Economy-Seat-Thickness
Number-of-First-Class-Rows
Number-of-Economy-Class-Rows
Number-of-First-Class-Seats-Per-Row
Number-of-Premium-Economy-Seats-Per-Row
Total-Number-of-First-Class-Seats
Total-Number-of-Premium-Economy-Seats /;
Positive Variables
x1 “First-Class Seat Pitch [in]”
x2 “First-Class Seat Width [in]”
x3 “First-Class Seat Thickness [in]”
x4 “Premium-Economy Seat Pitch [in]”
x5 “Premium-Economy Seat Width [in]”
x6 “Premium-Economy Seat Thickness [in]”
Variables
R “Maximum Ticket Revenue”
Integer Variables
x7 “Number of First-Class Rows”
x8 “Number of Premium-Economy Class Rows”
x9 “Number of First-Class Seats Per Row”
x10 “Number of Premium-Economy Seats Per Row”
x11 “Total Number of First-Class Seats”
x12 “Total Number of Premium-Economy Seats” ;
- .lo is lower bound, while .up is upper bound (use for some of the constraints)
Equations
FCSP “Minimum First-Class Seat Pitch [in]”
FCSW “Minimum First-Class Seat Width [in]”
FCST "Minimum First-Class Seat Thickness [in] "
PESP “Minimum Premium-Economy Seat Pitch [in]”
PESW "Minimum Premium-Economy Seat Width [in] "
PEST "Minimum Premium-Economy Seat Thickness [in] "
Seats_eq1 “Number of seats of First class”
Seats_eq2 “Number of seats in premiumeconomy”
Revenue_eq ‘Minimum Total Ticket Sales’
Row_constraint ‘Length of Aircraft Constraint (x0.8366)’
Width_constraint1 ‘Aircraft FC Width Constraint (x0.8366)’
Width_constraint2 ‘Aircraft PE Width Constraint (x0.8366)’
Min_FC_Comfort ‘Minimum First-Class Comfort Level’
Min_PE_Comfort ‘Minimum Premium-Economy Comfort Level’
Ratio_of_Seats_eq ‘Minimum Ratio of Premium Economy to First Class Seats’
Optimization_Function ‘Function to be Optimized by BARON/ANTIGONE’
Weight_constraint “Maximum amount of passengers and their associated weight”;
FCSP… x1 =g= 57;
FCSW… x2 =g= 25;
FCST… x3 =g= 3;
PESP… x4 =g= 35;
PESW… x5 =g= 18.5;
PEST… x6 =g= 1.5;
Optimization_Function… (1512x12)**0.99 + (5410x11)**0.99 =E= R;
Weight_constraint… x11 + x12 =l= 215;
Row_constraint… x7x1 + x8x4 =l= 1756.86;
Width_constraint1… x9x2 =l= 194.96;
Width_constraint2… x10x5 =l= 194.96;
Revenue_eq… 1512x12 + 5410x11 =g= 202182;
Seats_eq1… x11 =e= x7x9;
Seats_eq2… x12 =e= x8x10;
Min_FC_Comfort… 0.25x2 + 0.35x3 + 0.4x1 =g= 29.16;
Min_PE_Comfort… 0.25x5 + 0.35x6 + 0.4x4 =g= 18.6975;
Ratio_of_Seats_eq… 1.4*x12 =g= x11;
Model Seats “Non-Linear Mixed Integer” / all /;
option MINLP=baron
Solve Seats using MINLP max R;