apm/tp099.apm


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


Model tp099
! Source version 1
! Simple APM canonicalizer version 1.3
! APM back end version 1.1
Parameters
a_1 = 0
a_2 = 50
a_3 = 50
a_4 = 75
a_5 = 75
a_6 = 75
a_7 = 100
a_8 = 100
b = 32
t_1 = 0
t_2 = 25
t_3 = 50
t_4 = 100
t_5 = 150
t_6 = 200
t_7 = 290
t_8 = 380
s_1 = 0
q_1 = 0
r_1 = 0
End Parameters
Variables
x_1 = 0.5, >= 0, <= 1.58
x_2 = 0.5, >= 0, <= 1.58
x_3 = 0.5, >= 0, <= 1.58
x_4 = 0.5, >= 0, <= 1.58
x_5 = 0.5, >= 0, <= 1.58
x_6 = 0.5, >= 0, <= 1.58
x_7 = 0.5, >= 0, <= 1.58
obj
End Variables
Intermediates
s_2 = s_1 + (t_2 - t_1)*(a_2*sin(x_1) - b)
s_3 = s_2 + (t_3 - t_2)*(a_3*sin(x_2) - b)
s_4 = s_3 + (t_4 - t_3)*(a_4*sin(x_3) - b)
s_5 = s_4 + (t_5 - t_4)*(a_5*sin(x_4) - b)
s_6 = s_5 + (t_6 - t_5)*(a_6*sin(x_5) - b)
s_7 = s_6 + (t_7 - t_6)*(a_7*sin(x_6) - b)
s_8 = s_7 + (t_8 - t_7)*(a_8*sin(x_7) - b)
q_2 = q_1 + 0.5*(t_2 - t_1)^2*(a_2*sin(x_1) - b) + (t_2 - t_1)*s_1
q_3 = q_2 + 0.5*(t_3 - t_2)^2*(a_3*sin(x_2) - b) + (t_3 - t_2)*s_2
q_4 = q_3 + 0.5*(t_4 - t_3)^2*(a_4*sin(x_3) - b) + (t_4 - t_3)*s_3
q_5 = q_4 + 0.5*(t_5 - t_4)^2*(a_5*sin(x_4) - b) + (t_5 - t_4)*s_4
q_6 = q_5 + 0.5*(t_6 - t_5)^2*(a_6*sin(x_5) - b) + (t_6 - t_5)*s_5
q_7 = q_6 + 0.5*(t_7 - t_6)^2*(a_7*sin(x_6) - b) + (t_7 - t_6)*s_6
q_8 = q_7 + 0.5*(t_8 - t_7)^2*(a_8*sin(x_7) - b) + (t_8 - t_7)*s_7
c_1 = q_8 - 100000
c_2 = s_8 - 1000
r_2 = r_1 + a_2*(t_2 - t_1)*cos(x_1)
r_3 = r_2 + a_3*(t_3 - t_2)*cos(x_2)
r_4 = r_3 + a_4*(t_4 - t_3)*cos(x_3)
r_5 = r_4 + a_5*(t_5 - t_4)*cos(x_4)
r_6 = r_5 + a_6*(t_6 - t_5)*cos(x_5)
r_7 = r_6 + a_7*(t_7 - t_6)*cos(x_6)
r_8 = r_7 + a_8*(t_8 - t_7)*cos(x_7)
mf = -r_8^2
myminfun = mf
myabsdevnod0_0 = abs(myminfun + 831079891.5101075)
myreldevnod0_0 = abs(myminfun/831079891.5101075 + 1)
myabsdevnod0_1 = abs(x_1 - 0.542467816212317)
myreldevnod0_1 = abs(x_1/0.542467816212317 - 1)
myabsdevnod0_2 = abs(x_2 - 0.5290214242019767)
myreldevnod0_2 = abs(x_2/0.5290214242019767 - 1)
myabsdevnod0_3 = abs(x_3 - 0.5084491553164001)
myreldevnod0_3 = abs(x_3/0.5084491553164001 - 1)
myabsdevnod0_4 = abs(x_4 - 0.4802688509618159)
myreldevnod0_4 = abs(x_4/0.4802688509618159 - 1)
myabsdevnod0_5 = abs(x_5 - 0.4512363497966467)
myreldevnod0_5 = abs(x_5/0.4512363497966467 - 1)
myabsdevnod0_6 = abs(x_6 - 0.4091830824209853)
myreldevnod0_6 = abs(x_6/0.4091830824209853 - 1)
myabsdevnod0_7 = abs(x_7 - 0.3527878917811228)
myreldevnod0_7 = abs(x_7/0.3527878917811228 - 1)
myabsdevnod1_0 = (1/2)*(abs(myabsdevnod0_0 - myabsdevnod0_1) + (myabsdevnod0_0 + myabsdevnod0_1))
myreldevnod1_0 = (1/2)*(abs(myreldevnod0_0 - myreldevnod0_1) + (myreldevnod0_0 + myreldevnod0_1))
myabsdevnod1_2 = (1/2)*(abs(myabsdevnod0_2 - myabsdevnod0_3) + (myabsdevnod0_2 + myabsdevnod0_3))
myreldevnod1_2 = (1/2)*(abs(myreldevnod0_2 - myreldevnod0_3) + (myreldevnod0_2 + myreldevnod0_3))
myabsdevnod1_4 = (1/2)*(abs(myabsdevnod0_4 - myabsdevnod0_5) + (myabsdevnod0_4 + myabsdevnod0_5))
myreldevnod1_4 = (1/2)*(abs(myreldevnod0_4 - myreldevnod0_5) + (myreldevnod0_4 + myreldevnod0_5))
myabsdevnod1_6 = (1/2)*(abs(myabsdevnod0_6 - myabsdevnod0_7) + (myabsdevnod0_6 + myabsdevnod0_7))
myreldevnod1_6 = (1/2)*(abs(myreldevnod0_6 - myreldevnod0_7) + (myreldevnod0_6 + myreldevnod0_7))
myabsdevnod2_0 = (1/2)*(abs(myabsdevnod1_0 - myabsdevnod1_2) + (myabsdevnod1_0 + myabsdevnod1_2))
myreldevnod2_0 = (1/2)*(abs(myreldevnod1_0 - myreldevnod1_2) + (myreldevnod1_0 + myreldevnod1_2))
myabsdevnod2_4 = (1/2)*(abs(myabsdevnod1_4 - myabsdevnod1_6) + (myabsdevnod1_4 + myabsdevnod1_6))
myreldevnod2_4 = (1/2)*(abs(myreldevnod1_4 - myreldevnod1_6) + (myreldevnod1_4 + myreldevnod1_6))
myabsdevnod3_0 = (1/2)*(abs(myabsdevnod2_0 - myabsdevnod2_4) + (myabsdevnod2_0 + myabsdevnod2_4))
myreldevnod3_0 = (1/2)*(abs(myreldevnod2_0 - myreldevnod2_4) + (myreldevnod2_0 + myreldevnod2_4))
zmyabsdevmax = myabsdevnod3_0
zmyreldevmax = myreldevnod3_0
End Intermediates
Equations
obj = myminfun
c_1 = 0
c_2 = 0
End Equations
End Model

Stephan K.H. Seidl