## Search found 23 matches

6 months ago
Forum: Solvers
Topic: Solver stop conditions
Replies: 1
Views: 540

### Solver stop conditions

Dear all,

I am using BARON + GAMS to solve a MINLP problem. I would like to stop the solver if the objective function does not change for a given interval of time or number of iterations. How can I do?

Thanks very much. Best,
Luca
9 months ago
Forum: Syntax
Topic: retrieve the lower bound
Replies: 1
Views: 313

### retrieve the lower bound

Dear all,

I am solving a model with baron through gams. I would like to retrieve the lower bound and the upper bound of the objective function obj.
There is a variable where the LB is saved: I image that obj.l return the upper bound.

Luca
1 year ago
Forum: Syntax
Topic: Matrix multiplication in GAMS
Replies: 1
Views: 708

### Matrix multiplication in GAMS

Dear all,

what is the best way to multiply two matrix in GAMS?

Luca
1 year ago
Forum: Syntax
Topic: GAMS CPU time
Replies: 4
Views: 646

### Re: GAMS CPU time

usually I test code with single thread and I report this CPU time.
otherwise what you suggest to do ?

Thanks,
Luca
1 year ago
Forum: Syntax
Topic: GAMS CPU time
Replies: 4
Views: 646

### GAMS CPU time

Dear all,

I know in gams the elapsed time can be retrive by the couple of instructions:

scalar starttime; starttime = jnow;
....
scalar elapsed; elapsed = (jnow - starttime)*24*3600; display elapsed;

but how can i retrive the cpu time spent in gams by my code?

Luca
1 year ago
Forum: Tools
Topic: Gams and eigenvectors
Replies: 2
Views: 510

### Re: Gams and eigenvectors

thanks very much. I will do the exercise
1 year ago
Forum: Tools
Topic: Gams and eigenvectors
Replies: 2
Views: 510

### Gams and eigenvectors

Dear all,

I am using the tool eigenvector.exe to compute the eigenvector of a matrix.
Gams return a matrix with the eigenvectors. Just one question: the eigenvector are the row or the column of that matrix?

Thanks very much. Best regards,
Luca
1 year ago
Forum: Solvers
Topic: Infeasibilities in CPLEX
Replies: 2
Views: 2763

### Re: Infeasibilities in CPLEX

Thanks very much for your help!

Luca
1 year ago
Forum: Solvers
Topic: Infeasibilities in CPLEX
Replies: 2
Views: 2763

### Infeasibilities in CPLEX

Dear all, I am programming in GAMS using CPLEX as MIP solver. I activated the following options for CPLEX feasopt 1 numericalemphasis 1 scaind 1 CPLEX should provide the "less infeasible" solution to the problem. However I obtain the following error: Feasible solution. ------------------------------...
1 year ago
Forum: Modeling
Topic: Principal component analysis in GAMS
Replies: 1
Views: 1759

### Principal component analysis in GAMS

Dear all,
I would like to implement principal component analysis in GAMS. I would ask you if there are linear algebra facilities in GAMS (such as tools to compute eigenvalues...) or there are libraries already available for PCA in GAMS.

Thanks very much for your help. Best regards,
Luca