Search found 639 matches

by Renger
3 years ago
Forum: Tools
Topic: Solving stochastic gams model multiple times in gams
Replies: 4
Views: 8105

Re: Solving stochastic gams model multiple times in gams

Hi
Take a closer look at the documentation on loops.

Code: Select all

set i /1*100/;

loop(i, 

* set a random value

* solve your model

* save the results:
results(i, "myresult x") = X.L;
* end of loop
);
Cheers
Renger
by Renger
3 years ago
Forum: Syntax
Topic: Exit code = 3
Replies: 2
Views: 2970

Re: Exit code = 3

Hi First of all, don't use more than 3 "*" for your comments as errors are shown in the listing as four of them. Searching in your listing for errors is very cumbersome. If you look for the errors, you will find that you don't have as many equations as you have variables: **** Counts do no...
by Renger
3 years ago
Forum: Syntax
Topic: Usage of bratio in GAMS/CPLEX to pass the optimal basis of one model to the other
Replies: 5
Views: 3560

Re: Usage of bratio in GAMS/CPLEX to pass the optimal basis of one model to the other

yes, that is correct, but might be this coincidence that they both solve in 3 iterations.
R
by Renger
3 years ago
Forum: Syntax
Topic: How to create an index in GAMS
Replies: 1
Views: 2474

Re: How to create an index in GAMS

Hi Ana You could just use one parameter: age(a,b,c) 'Your original parameter1', siteIndex(a,b,c) 'Your original parameter2' allstuff(a,b,c,*) allstuff(a,b,c,"Age') = age(a,b,c); allstuff(a,b,c,"siteIndex") = siteIndex(a,b,c); or like this: set d /"Age", "Index"): p...
by Renger
3 years ago
Forum: Modeling
Topic: linearization
Replies: 1
Views: 1731

Re: linearization

Hi

Perhaps you can find the solution here. Otherwise, search for "piecewise linearization gams" in Google and have a look at the other formulation.

Cheers
Renger
by Renger
3 years ago
Forum: Modeling
Topic: semidefinite programming
Replies: 1
Views: 1691

Re: semidefinite programming

Hi
Please read the "Rules" to this forum and rewrite your question accordingly (what is not working as your model is solving) so people don't have to guess or use a lot of time to find out what you mean.
Cheers
Renger
by Renger
3 years ago
Forum: Modeling
Topic: Lot Sizing Implementation
Replies: 2
Views: 2110

Re: Lot Sizing Implementation

Hi Burak

I had a quick look at your model and the pdf file. Why are you restraining some of your equations to j > 1. The model description doesn't have these constraints (I believe).

Cheers
Renger
by Renger
3 years ago
Forum: Syntax
Topic: Usage of bratio in GAMS/CPLEX to pass the optimal basis of one model to the other
Replies: 5
Views: 3560

Re: Usage of bratio in GAMS/CPLEX to pass the optimal basis of one model to the other

Hi
How do you know that it should solve in three iterations? Everything looks fine.
Cheers
Renger
by Renger
3 years ago
Forum: Modeling
Topic: e-Constraint AUGMECON2 decision variables
Replies: 6
Views: 5159

Re: e-Constraint AUGMECON2 decision variables

Here you go
CHeers
Renger
Erweiterung.gms
(10.23 KiB) Downloaded 282 times
by Renger
3 years ago
Forum: Modeling
Topic: e-Constraint AUGMECON2 decision variables
Replies: 6
Views: 5159

Re: e-Constraint AUGMECON2 decision variables

Hi Janisch I would define parameters to collect the values of the variables in the loop. After the loop, you can send all the results to an excel file. * Before the loop parameter results1(kp,k,*) Results for variables over k results2(kp,*) Results for scalar variables; * After the solve results2(kp...