Search found 32 matches

by Jubeyer
3 months ago
Forum: Syntax
Topic: Command line Keyword in the gams script
Replies: 1
Views: 1778

Command line Keyword in the gams script

Hi, What is the correct syntax of including the command line keyword in the code? For example, I am executing this command >gams mycode keep=1 --USE_GAMS='YES' So, how should I write the 'keep=1 --USE_GAMS='YES' ' in the syntax of the .gms file instead of writing each time in the command line. My ot...
by Jubeyer
3 months ago
Forum: Tools
Topic: Query on the data structure and debug procedure in python Embedded Code Facility
Replies: 0
Views: 1571

Query on the data structure and debug procedure in python Embedded Code Facility

Hi, I have been trying to build a model with the EmbeddedCode Facility of GAMS with python. However, I am not getting a clear picture about the data structure that is going in and out from the embedded code section[https://www.gams.com/latest/docs/UG_EmbeddedCode.html]. So, I have few queries regard...
by Jubeyer
3 months ago
Forum: Modeling
Topic: Constraint Variable Implementation via EmbeddedCode Facility
Replies: 1
Views: 748

Constraint Variable Implementation via EmbeddedCode Facility

Hi, I was wondering whether anyone can tell me whether it's possible to implement a constraint in GAMS where one of the variable is implemented via the embedded code facility. To be more specific, is it possible to make the solver iterate the value of the variables which is further passed to some py...
by Jubeyer
3 months ago
Forum: Syntax
Topic: Data Structure Handling Issues in EmbeddedCode Facility [Python]
Replies: 0
Views: 1243

Data Structure Handling Issues in EmbeddedCode Facility [Python]

Hi, I am using the EmbeddedCode Facility of GAMS and using a python script which is supposed to process some data obtained from the optimization problem solution. For that I need to pass two parameters to the embedded section; one of them is this: image.png and another one is this image.png : Then I...
by Jubeyer
10 months ago
Forum: Syntax
Topic: Assigning specific 'marginal value' and run the optimization script
Replies: 1
Views: 628

Assigning specific 'marginal value' and run the optimization script

Hi, Is there any way to assign some specific marginal value to some equality constraint in GAMS and run the optimization script which will have those assigned values fixed over the optimization horizon? I know that the marginal values are product of the optimization solution, but I guess it might be...
by Jubeyer
1 year ago
Forum: Modeling
Topic: Controlling lagrange multiplier's value with a constraint
Replies: 0
Views: 1294

Controlling lagrange multiplier's value with a constraint

Hi,

Does anyone know, whether it is possible or not to control the value of lagrange multiplier by introducing a constraint in the optimization formulation? If yes, how can we do that.

Regards,
Jubeyer
by Jubeyer
1 year ago
Forum: Solvers
Topic: What could be the reason for this kind of message?
Replies: 0
Views: 1575

What could be the reason for this kind of message?

Hi , I am getting this kind of message in my log file, MIP status(101): integer optimal solution Cplex Time: 148.14sec (det. 115562.34 ticks) Fixing integer variables, and solving final LP... Version identifier: 12.10.0.0 | 2019-11-26 | 843d4de CPXPARAM_Advance 2 CPXPARAM_Threads 1 CPXPARAM_Parallel...
by Jubeyer
1 year ago
Forum: Modeling
Topic: Three objective function optimization (eps constraint method)
Replies: 3
Views: 1446

Re: Three objective function optimization (eps constraint method)

OK. I guess what you're trying to do from looking at your code is that you have integrated all three of your objective function to a single objective function. That may work if you don't have any conflicting interest. Then it will be a typical optimization problem. If you have a case that you want t...
by Jubeyer
1 year ago
Forum: Syntax
Topic: loading variable from a gams script results to another as parameter
Replies: 0
Views: 1274

loading variable from a gams script results to another as parameter

Hi, I am running a sequential optimization problem, where the variable of one problem is passed as a parameter to other. However I have tried to load a variable which is a parameter in another problem from the output gdx file. I have declared the variable as a parameter in the next file. While tryin...