## ams_version=1.0 Model Main_ex14_2_3 { Variable x1; Variable x2; Variable x3; Variable x4; Variable x5; Variable objvar; Variable x7 { Range: nonnegative; } Constraint e1 { Definition: objvar - x7 = 0; } Constraint e2 { Definition: { log(x1 + 1.2689544013438*x2 + 0.696334182309743*x3 + 0.590071729272002*x4) + x1/(x1 + 1.2689544013438*x2 + 0.696334182309743*x3 + 0.590071729272002* x4) + 1.55190688128384*x2/(1.55190688128384*x1 + x2 + 0.696676834276998*x3 + 1.27289874839144*x4) + 0.767395887387844*x3/(0.767395887387844*x1 + 0.176307940228365*x2 + x3 + 0.187999658986436*x4) + 0.989870205661735*x4/( 0.989870205661735*x1 + 0.928335072476283*x2 + 0.308103094315467*x3 + x4) + 2787.49800065313/(229.664 + x5) - x7 <= 10.7545020354713 } } Constraint e3 { Definition: { log(1.55190688128384*x1 + x2 + 0.696676834276998*x3 + 1.27289874839144*x4) + 1.2689544013438*x1/(x1 + 1.2689544013438*x2 + 0.696334182309743*x3 + 0.590071729272002*x4) + x2/(1.55190688128384*x1 + x2 + 0.696676834276998* x3 + 1.27289874839144*x4) + 0.176307940228365*x3/(0.767395887387844*x1 + 0.176307940228365*x2 + x3 + 0.187999658986436*x4) + 0.928335072476283*x4/( 0.989870205661735*x1 + 0.928335072476283*x2 + 0.308103094315467*x3 + x4) + 2696.24885600287/(226.232 + x5) - x7 <= 10.3803549837107 } } Constraint e4 { Definition: { log(0.767395887387844*x1 + 0.176307940228365*x2 + x3 + 0.187999658986436* x4) + 0.696334182309743*x1/(x1 + 1.2689544013438*x2 + 0.696334182309743*x3 + 0.590071729272002*x4) + 0.696676834276998*x2/(1.55190688128384*x1 + x2 + 0.696676834276998*x3 + 1.27289874839144*x4) + x3/(0.767395887387844*x1 + 0.176307940228365*x2 + x3 + 0.187999658986436*x4) + 0.308103094315467* x4/(0.989870205661735*x1 + 0.928335072476283*x2 + 0.308103094315467*x3 + x4) + 3643.31361767678/(239.726 + x5) - x7 <= 12.9738026256517 } } Constraint e5 { Definition: { log(0.989870205661735*x1 + 0.928335072476283*x2 + 0.308103094315467*x3 + x4) + 0.590071729272002*x1/(x1 + 1.2689544013438*x2 + 0.696334182309743*x3 + 0.590071729272002*x4) + 1.27289874839144*x2/(1.55190688128384*x1 + x2 + 0.696676834276998*x3 + 1.27289874839144*x4) + 0.187999658986436*x3/( 0.767395887387844*x1 + 0.176307940228365*x2 + x3 + 0.187999658986436*x4) + x4/(0.989870205661735*x1 + 0.928335072476283*x2 + 0.308103094315467*x3 + x4) + 2755.64173589155/(219.161 + x5) - x7 <= 10.2081676704566 } } Constraint e6 { Definition: { (-log(x1 + 1.2689544013438*x2 + 0.696334182309743*x3 + 0.590071729272002* x4)) - (x1/(x1 + 1.2689544013438*x2 + 0.696334182309743*x3 + 0.590071729272002*x4) + 1.55190688128384*x2/(1.55190688128384*x1 + x2 + 0.696676834276998*x3 + 1.27289874839144*x4) + 0.767395887387844*x3/( 0.767395887387844*x1 + 0.176307940228365*x2 + x3 + 0.187999658986436*x4) + 0.989870205661735*x4/(0.989870205661735*x1 + 0.928335072476283*x2 + 0.308103094315467*x3 + x4)) - 2787.49800065313/(229.664 + x5) - x7 <= -10.7545020354713 } } Constraint e7 { Definition: { (-log(1.55190688128384*x1 + x2 + 0.696676834276998*x3 + 1.27289874839144* x4)) - (1.2689544013438*x1/(x1 + 1.2689544013438*x2 + 0.696334182309743*x3 + 0.590071729272002*x4) + x2/(1.55190688128384*x1 + x2 + 0.696676834276998*x3 + 1.27289874839144*x4) + 0.176307940228365*x3/( 0.767395887387844*x1 + 0.176307940228365*x2 + x3 + 0.187999658986436*x4) + 0.928335072476283*x4/(0.989870205661735*x1 + 0.928335072476283*x2 + 0.308103094315467*x3 + x4)) - 2696.24885600287/(226.232 + x5) - x7 <= -10.3803549837107 } } Constraint e8 { Definition: { (-log(0.767395887387844*x1 + 0.176307940228365*x2 + x3 + 0.187999658986436 *x4)) - (0.696334182309743*x1/(x1 + 1.2689544013438*x2 + 0.696334182309743 *x3 + 0.590071729272002*x4) + 0.696676834276998*x2/(1.55190688128384*x1 + x2 + 0.696676834276998*x3 + 1.27289874839144*x4) + x3/(0.767395887387844* x1 + 0.176307940228365*x2 + x3 + 0.187999658986436*x4) + 0.308103094315467 *x4/(0.989870205661735*x1 + 0.928335072476283*x2 + 0.308103094315467*x3 + x4)) - 3643.31361767678/(239.726 + x5) - x7 <= -12.9738026256517 } } Constraint e9 { Definition: { (-log(0.989870205661735*x1 + 0.928335072476283*x2 + 0.308103094315467*x3 + x4)) - (0.590071729272002*x1/(x1 + 1.2689544013438*x2 + 0.696334182309743*x3 + 0.590071729272002*x4) + 1.27289874839144*x2/( 1.55190688128384*x1 + x2 + 0.696676834276998*x3 + 1.27289874839144*x4) + 0.187999658986436*x3/(0.767395887387844*x1 + 0.176307940228365*x2 + x3 + 0.187999658986436*x4) + x4/(0.989870205661735*x1 + 0.928335072476283*x2 + 0.308103094315467*x3 + x4)) - 2755.64173589155/(219.161 + x5) - x7 <= -10.2081676704566 } } Constraint e10 { Definition: x1 + x2 + x3 + x4 = 1; } Procedure MainInitialization { Body: { x1.lower := 1E-6; x1.upper := 1; x2.lower := 1E-6; x2.upper := 1; x3.lower := 1E-6; x3.upper := 1; x4.lower := 1E-6; x4.upper := 1; x5.lower := 20; x5.upper := 80; x1.l := 0.295; x2.l := 0.148; x3.l := 0.463; x4.l := 0.094; x5.l := 57.154; } } MathematicalProgram ex14_2_3 { Objective: objvar; Direction: minimize; Constraints: AllConstraints; Variables: AllVariables; Type: NLP; } Procedure MainExecution { Body: { solve ex14_2_3; } } Procedure MainTermination { Body: { return 1; } } }