# example0.mod
/* this is a multi-
line comment */
param n := 10;
set N := 1..n; # N is a set consisting of numbers 1,2,...,n
var x{i in N}; # x is a choice variable indexed by elements of N
maximize name_of_objective: sum{i in N} x[i];
s.t.
name_of_constraint_1: sum{i in N} x[i] <= 7;
name_of_constraint_2{i in N}: x[i] <= 0.5; # constraint for all i in N
data; # this program has no data
end;