Search found 11 matches

by Hussain_TUT
2 years ago
Forum: Syntax
Topic: Error =Error 32: The process cannot the file because it is being used by another process
Replies: 1
Views: 2588

Error =Error 32: The process cannot the file because it is being used by another process

Dear all, I have been facing a strange error "Error =Error 32: The process cannot the file because it is being used by another process" . After that, the next message is "Error reading listing file" . test (002).png This occur whenever my simulation time is getting over 17min. If...
by Hussain_TUT
4 years ago
Forum: Modeling
Topic: MIP computational time
Replies: 0
Views: 2203

MIP computational time

Dear All, I am solving a chemical problem where many batches are produces on a single machine. In this problem, two sets are defined: t t /1*T/ maximum time and b /1*N/ number of batches. Its MIP problem which has 11 binary variables (to represent 11 different actions in the batch) defined over both...
by Hussain_TUT
5 years ago
Forum: Syntax
Topic: Set multiplication
Replies: 1
Views: 2040

Set multiplication

Hello, I am working in a model that produce one batch of a chemical process that has many sub-processes. The batch horizon is 700 time intervals. During the process, one process begin for short duration (10-50 interval) who beginning time and total duration is calculated by the optimization itself. ...
by Hussain_TUT
5 years ago
Forum: Modeling
Topic: GDX reading
Replies: 2
Views: 4058

Re: GDX reading

Hi,

Thank you for your message and your help worked. You were right, I was mixing execution and compilation mode commands. Thanks for the help.

Cheers,
by Hussain_TUT
5 years ago
Forum: Modeling
Topic: GDX reading
Replies: 2
Views: 4058

GDX reading

Dear All, I am solving an optimization problem that works well. For further extension, I need the value to save the value of a variable (var) in a parameter (par). They both have same dimension. I have read in the help section and one way is to use GDX facility. I saved my variable in an gdx file re...
by Hussain_TUT
5 years ago
Forum: Modeling
Topic: Parameter of different length
Replies: 1
Views: 2183

Parameter of different length

Hi, I have the following code (not exact one) set sh /1*50/ t /1*10/ ; Parameter large (sh) small(t); I have two parameters of different length ( large(sh) and small (t) ). During simulation, large(sh) is assigned with some random values and i want to copy (for example) the middle 10 values from it ...
by Hussain_TUT
5 years ago
Forum: Modeling
Topic: GAMS parameter issue
Replies: 6
Views: 5839

Re: GAMS parameter issue

Hi,
I have not noticed that . It works.

Thanks
by Hussain_TUT
5 years ago
Forum: Syntax
Topic: Any element from a set, urgent
Replies: 4
Views: 4467

Re: Any element from a set, urgent

Hi,
As far as i know, set need to be defined in advanced. You can also use subset concept e.g, P can be a super set while P1 can a subset. The issue you raised may be overcomes suing $ operator in constraint.
by Hussain_TUT
5 years ago
Forum: Syntax
Topic: Any element from a set, urgent
Replies: 4
Views: 4467

Re: Any element from a set, urgent

Hi, If i am understand it corrctly, you want to get a single any single value (let's say frist) from the parameter p that contains three values. If this is the case then you may try this: set i /1*3/; ** here i assume that p has only 3 three elements parameter p1 j; loop(i$(j=0), p1 (i)=p(i); j=1$(p...
by Hussain_TUT
5 years ago
Forum: Modeling
Topic: GAMS parameter issue
Replies: 6
Views: 5839

Re: GAMS parameter issue

Hi, Thank you for the message. A simplified version of the code in attached. I believe that understanding of the model is not important here but the parameters ( ltc1_time(cn) , ltc2_time(cn) and ltc3_time(cn) ) used in the master and slave loop is the issue. An an example from the code: after first...