## ams_version=1.0 Model Main_pooling_haverly3pq { Variable objvar; Variable x2 { Range: nonnegative; } Variable x3 { Range: nonnegative; } Variable x4 { Range: nonnegative; } Variable x5 { Range: nonnegative; } Variable x6 { Range: nonnegative; } Variable x7 { Range: nonnegative; } Variable x8 { Range: nonnegative; } Variable x9 { Range: nonnegative; } Variable x10 { Range: nonnegative; } Variable x11 { Range: nonnegative; } Constraint e1 { Definition: objvar - x4 + 5*x5 + 3*x8 + 9*x9 - 4*x10 + 2*x11 = 0; } Constraint e2 { Definition: x8 + x9 <= 300; } Constraint e3 { Definition: x10 + x11 <= 300; } Constraint e4 { Definition: x4 + x5 <= 300; } Constraint e5 { Definition: x8 + x9 + x10 + x11 <= 300; } Constraint e6 { Definition: x4 + x8 + x10 <= 100; } Constraint e7 { Definition: x5 + x9 + x11 <= 200; } Constraint e8 { Definition: - 0.5*x4 + 0.5*x8 - 1.5*x10 <= 0; } Constraint e9 { Definition: 0.5*x5 + 1.5*x9 - 0.5*x11 <= 0; } Constraint e10 { Definition: x2 + x3 = 1; } Constraint e11 { Definition: -x2*x6 + x8 = 0; } Constraint e12 { Definition: -x2*x7 + x9 = 0; } Constraint e13 { Definition: -x3*x6 + x10 = 0; } Constraint e14 { Definition: -x3*x7 + x11 = 0; } Procedure MainInitialization { Body: { x2.upper := 1; x3.upper := 1; x4.upper := 100; x5.upper := 200; x6.upper := 100; x7.upper := 200; x8.upper := 100; x9.upper := 200; x10.upper := 100; x11.upper := 200; } } MathematicalProgram pooling_haverly3pq { Objective: objvar; Direction: minimize; Constraints: AllConstraints; Variables: AllVariables; Type: NLP; } Procedure MainExecution { Body: { solve pooling_haverly3pq; } } Procedure MainTermination { Body: { return 1; } } }