I am sending my problem to neos and it always solves problem to optimality.
I am adding the following code to restrict iterations
Code: Select all
$onecho > baron.opt
MaxIter 100
$offecho
How can I restrict the number of iterations?
Thanks!
Code: Select all
$onecho > baron.opt
MaxIter 100
$offecho
Code: Select all
model yourmodel /all/;
$onecho > baron.opt
MaxIter 100
$offecho
yourmodel.optfile = 1;
option minlp = baron;
solve yourmodel using minlp minimizing z_value;