ampl/tp084.mod


If Cut/Copy and Paste fails, then click here for download.


# Model tp084
# Source version 1
# Simple APM canonicalizer version 1.3
# AMPL back end version 1.1
param a_1 := -24345;
param a_2 := -8720288.849;
param a_3 := 150512.5253;
param a_4 := -156.6950325;
param a_5 := 476470.3222;
param a_6 := 729482.8271;
param a_7 := -145421.402;
param a_8 := 2931.1506;
param a_9 := -40.427932;
param a_10 := 5106.192;
param a_11 := 15711.36;
param a_12 := -155011.1084;
param a_13 := 4360.53352;
param a_14 := 12.9492344;
param a_15 := 10236.884;
param a_16 := 13176.786;
param a_17 := -326669.5104;
param a_18 := 7390.68412;
param a_19 := -27.8986976;
param a_20 := 16643.076;
param a_21 := 30988.146;
var x_1 >= 0, <= 1000;
let x_1 := 2.52;
var x_2 >= 1.2, <= 2.4;
let x_2 := 2;
var x_3 >= 20, <= 60;
let x_3 := 37.5;
var x_4 >= 9, <= 9.3;
let x_4 := 9.25;
var x_5 >= 6.5, <= 7;
let x_5 := 6.8;
var t_1 = a_7*x_1 + a_8*x_1*x_2 + a_9*x_1*x_3 + a_10*x_1*x_4 + a_11*x_1*x_5;
var t_2 = a_12*x_1 + a_13*x_1*x_2 + a_14*x_1*x_3 + a_15*x_1*x_4 + a_16*x_1*x_5;
var t_3 = a_17*x_1 + a_18*x_1*x_2 + a_19*x_1*x_3 + a_20*x_1*x_4 + a_21*x_1*x_5;
var myminfun = (-1)*a_1 - a_2*x_1 - a_3*x_1*x_2 - a_4*x_1*x_3 - a_5*x_1*x_4 - a_6*x_1*x_5;
var myabsdevnod0_0 = abs(myminfun + 5280335.133214754);
var myreldevnod0_0 = abs(myminfun/5280335.133214754 + 1);
var myabsdevnod0_1 = abs(x_1 - 4.5374309746554);
var myreldevnod0_1 = abs(x_1/4.5374309746554 - 1);
var myabsdevnod0_2 = abs(x_2 - 2.4);
var myreldevnod0_2 = abs(x_2/2.4 - 1);
var myabsdevnod0_3 = abs(x_3 - 60);
var myreldevnod0_3 = abs(x_3/60 - 1);
var myabsdevnod0_4 = abs(x_4 - 9.3);
var myreldevnod0_4 = abs(x_4/9.3 - 1);
var myabsdevnod0_5 = abs(x_5 - 7);
var myreldevnod0_5 = abs(x_5/7 - 1);
var myabsdevnod1_0 = (1/2)*(abs(myabsdevnod0_0 - myabsdevnod0_1) + (myabsdevnod0_0 + myabsdevnod0_1));
var myreldevnod1_0 = (1/2)*(abs(myreldevnod0_0 - myreldevnod0_1) + (myreldevnod0_0 + myreldevnod0_1));
var myabsdevnod1_2 = (1/2)*(abs(myabsdevnod0_2 - myabsdevnod0_3) + (myabsdevnod0_2 + myabsdevnod0_3));
var myreldevnod1_2 = (1/2)*(abs(myreldevnod0_2 - myreldevnod0_3) + (myreldevnod0_2 + myreldevnod0_3));
var myabsdevnod1_4 = (1/2)*(abs(myabsdevnod0_4 - myabsdevnod0_5) + (myabsdevnod0_4 + myabsdevnod0_5));
var myreldevnod1_4 = (1/2)*(abs(myreldevnod0_4 - myreldevnod0_5) + (myreldevnod0_4 + myreldevnod0_5));
var myabsdevnod2_0 = (1/2)*(abs(myabsdevnod1_0 - myabsdevnod1_2) + (myabsdevnod1_0 + myabsdevnod1_2));
var myreldevnod2_0 = (1/2)*(abs(myreldevnod1_0 - myreldevnod1_2) + (myreldevnod1_0 + myreldevnod1_2));
var myabsdevnod2_4 = myabsdevnod1_4;
var myreldevnod2_4 = myreldevnod1_4;
var myabsdevnod3_0 = (1/2)*(abs(myabsdevnod2_0 - myabsdevnod2_4) + (myabsdevnod2_0 + myabsdevnod2_4));
var myreldevnod3_0 = (1/2)*(abs(myreldevnod2_0 - myreldevnod2_4) + (myreldevnod2_0 + myreldevnod2_4));
var zmyabsdevmax = myabsdevnod3_0;
var zmyreldevmax = myreldevnod3_0;
minimize obj: myminfun;
subject to ci_1: 294000 - t_1 >= 0;
subject to ci_2: t_1 >= 0;
subject to ci_3: 294000 - t_2 >= 0;
subject to ci_4: t_2 >= 0;
subject to ci_5: 277200 - t_3 >= 0;
subject to ci_6: t_3 >= 0;
solve;
display x_1;
display x_2;
display x_3;
display x_4;
display x_5;
display myminfun;
display zmyabsdevmax;
display zmyreldevmax;
# End Model

Stephan K.H. Seidl