Search found 9 matches
- 1 year ago
- Forum: Solvers
- Topic: Elimination constraint & subset usage
- Replies: 1
- Views: 1739
Elimination constraint & subset usage
Hello guys, I'm working on a vehicle routing problem. I was able to code the model somehow and got a result. But the results are undesirable sub-tours. I want to add sub-tour elimination constraints. An example is available below: image.png I have 15 stops and that means I add this constraint for 2*...
- 1 year ago
- Forum: Solvers
- Topic: Barons restricting the iteration numbers
- Replies: 1
- Views: 1769
Re: Barons restricting the iteration numbers
Hi,
I solved this problem as adding the following code set.
I solved this problem as adding the following code set.
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;
- 1 year ago
- Forum: Solvers
- Topic: DICOPT: Serious problems in MIP master problem
- Replies: 0
- Views: 1756
DICOPT: Serious problems in MIP master problem
Hello experts, I'm always opening a new toic in last days, so I apologize, but unfortunately I need to solve this GAMS problem for my doctoral thesis. I am just getting familiar with GAMS. I have a nonlinear problem and this problem also includes binary variables. The solvent used is DICOPT. I think...
- 1 year ago
- Forum: Solvers
- Topic: Changing tolerence
- Replies: 6
- Views: 2900
Re: Changing tolerence
Hi Steve,
Thank you very much your attention.
I want to add my output panel here as attachment. I think showing it this way will make it clearer because I don't understand exactly why the iterations are terminated. But the infeasible option seems to be correct.
Thank you very much your attention.
I want to add my output panel here as attachment. I think showing it this way will make it clearer because I don't understand exactly why the iterations are terminated. But the infeasible option seems to be correct.
- 1 year ago
- Forum: Solvers
- Topic: Changing tolerence
- Replies: 6
- Views: 2900
Re: Changing tolerence
Hi again Michael,
Did I say wrong which solver it is? Because the model works and does not give an error. but the result is not binary. Trying to solve it with MINLP.
So what i have to do for getting a sensible results?
Did I say wrong which solver it is? Because the model works and does not give an error. but the result is not binary. Trying to solve it with MINLP.
So what i have to do for getting a sensible results?

- 1 year ago
- Forum: Solvers
- Topic: Changing tolerence
- Replies: 6
- Views: 2900
Re: Changing tolerence
I'm new to use Gams. Sorry for that, cause I can not understand completely what you mean. My solver is CONOPT (non-linear problem effect). If there is not a Gams option, how can I fix this tolerance problem? For example, I have a binary variable. And solver gives a solution as 0.8. Thats a huge rang...
- 1 year ago
- Forum: Solvers
- Topic: Changing tolerence
- Replies: 6
- Views: 2900
Changing tolerence
Hello,
I have a mixed integer model. GAMS outputs my binary variables as decimals. For this, I guess I need to change the integrality tolerance value. But I don't know how to do it. Do you have a code?
I have a mixed integer model. GAMS outputs my binary variables as decimals. For this, I guess I need to change the integrality tolerance value. But I don't know how to do it. Do you have a code?
- 1 year ago
- Forum: Solvers
- Topic: Error 148, even on the objective function
- Replies: 2
- Views: 2164
Re: Error 148, even on the objective function
Thank you for providing this information. I'll investigate this thread and make any required changes.
Thank you. I'll also attach my requested files to the initial post.
Thank you. I'll also attach my requested files to the initial post.

- 1 year ago
- Forum: Solvers
- Topic: Error 148, even on the objective function
- Replies: 2
- Views: 2164
Error 148, even on the objective function
Hi everyone, I'm fresh over here. I want to ask my question without further ado. I am getting error 148 (even on the objective function). I've gone through almost all the related topics on the forum. I could'nt solve my problem. I am attaching my relevant files. I would be very grateful if you could...