Hello

I have the following problem

I generate a matrix for my problem using a random number counter, then everything is fine

But if I generate a matrix using a Euclidean metric satisfying the triangle inequality, I get a bad answer for my model.

Maybe someone knows the reason

## Search found 8 matches

- 2 months ago
- Forum: Syntax
- Topic: Euclidean metric
- Replies:
**1** - Views:
**83**

### Tell me

Hello I want to skip finding a valid solution in CPLEX, go directly to the branch and bound method Tell me how to set a valid solution for my model. It is necessary to set the value of the function only or vector solution too? Suppose I know that for this test problem the value of the function does ...

- 4 months ago
- Forum: Syntax
- Topic: Gams options
- Replies:
**1** - Views:
**196**

### Gams options

Hello How to understand if options are included in the log file does not write anything Suppose I want to add these options. bttol=0.3 userheurfirst=15 They are in cplex.opt just can not put a file of this extension Connect them Shops.OptFile = 1; In the log you can see that Gams but did they turn o...

- 5 months ago
- Forum: Modeling
- Topic: help me set up a model
- Replies:
**8** - Views:
**499**

### Re: help me set up a model

You did not understand me correctly, I do not need to find an exact solution. Since this upper estimates will go and approximate Finding a feasible solution we cannot limit; we would like to limit the work of branches and borders The main thing that would be solved in a reasonable time and not in da...

- 5 months ago
- Forum: Modeling
- Topic: help me set up a model
- Replies:
**8** - Views:
**499**

### Re: help me set up a model

Thank Can I somehow speed up the algorithm? I only need to calculate the top scores. Please tell us a little about the output file. I beg you to calmly take this because I'm just starting to study) How can I work with a branch tree? cut like the depth and width of the tree? Since a valid solution is...

- 5 months ago
- Forum: Modeling
- Topic: help me set up a model
- Replies:
**8** - Views:
**499**

- 5 months ago
- Forum: Modeling
- Topic: help me set up a model
- Replies:
**8** - Views:
**499**

### Re: help me set up a model

attached model and test file

I run through .bat

"C:\GAMS23.3\gams.exe" "C:\test\gamsLP" --filename=gams.200.37.25.1.gms MIP=cplex lo=2 lf=200.37.25.1.log

I run through .bat

"C:\GAMS23.3\gams.exe" "C:\test\gamsLP" --filename=gams.200.37.25.1.gms MIP=cplex lo=2 lf=200.37.25.1.log

- 5 months ago
- Forum: Modeling
- Topic: help me set up a model
- Replies:
**8** - Views:
**499**

### help me set up a model

Hi all Sorry for my english help please set up Gams, to quickly decide my test my model Scalar m; m=smax((i,j,r), w(i)*k(i,j,r) / uc(i)); binary Variables x(j,r); positive variables z(i,j,r),a(i); Free variables opt; Equations goal upperZ(i,j,r) lowerZ(i,j,r) less(i,j,r) budget omg(i) ogrp; goal.. o...