Barons restricting the iteration numbers

I am solving a nlp using barons, I tried restricting the number of iterations to a fixed value like 100.
I am sending my problem to neos and it always solves problem to optimality.

I am adding the following code to restrict iterations

$onecho > baron.opt
MaxIter 100
$offecho

How can I restrict the number of iterations?

Thanks!

Hi,

I solved this problem as adding the following code set.

model yourmodel /all/;
$onecho > baron.opt
MaxIter 100
$offecho

yourmodel.optfile = 1;

option minlp = baron;
solve yourmodel using minlp minimizing z_value;