## ams_version=1.0 Model Main_nvs04 { Variable i1 { Range: integer; } Variable i2 { Range: integer; } Variable objvar; Constraint e1 { Definition: -(100*sqr(0.5 - sqr(0.6 + i1) + i2) + sqr(0.4 - i1)) + objvar = 0; } Procedure MainInitialization { Body: { i1.upper := 200; i2.upper := 200; i1.l := 100; i2.l := 100; } } MathematicalProgram nvs04 { Objective: objvar; Direction: minimize; Constraints: AllConstraints; Variables: AllVariables; Type: MINLP; } ElementParameter myGMP { Range: AllGeneratedMathematicalPrograms; } Procedure MainExecution { Body: { solve nvs04; } } Procedure MainTermination { Body: { return 1; } } }