Thanks GFA!
Best regards,
Rofice
Search found 28 matches
- 2 years ago
- Forum: Syntax
- Topic: Problem with loop
- Replies: 2
- Views: 4089
- 2 years ago
- Forum: Syntax
- Topic: Problem with loop
- Replies: 2
- Views: 4089
Problem with loop
Dear all, I am trying to perform few calculations using loop. However, the formulated syntax is not able to store the last value of parameter b(z) (722) to set u2(zz). Please see the attached model for more details. I will really appreciate it if someone helps me with correcting the codes. syntax.gm...
- 3 years ago
- Forum: Modeling
- Topic: Conditional variables
- Replies: 4
- Views: 3575
Re: Conditional variables
Hi,
Thank you very much for the codes! One more thing, you said bound for big M should be large enough but as small as possible. I am just wondering what will happen if a very very big value for big M is used?
Regards,
Rofice
Thank you very much for the codes! One more thing, you said bound for big M should be large enough but as small as possible. I am just wondering what will happen if a very very big value for big M is used?
Regards,
Rofice
- 3 years ago
- Forum: Modeling
- Topic: Conditional variables
- Replies: 4
- Views: 3575
Conditional variables
Dear all, I want to model if b(y)<0, then c(y)=b(y), otherwise c(y)=0. Likewise if b(y)>0, then d(y)=b(y), otherwise d(y)=0. Where b,c,d are variables. Attached is the model which is MINLP. I will really appreciate if someone can help me to formulate MILP formulation. Thanks in advance! Kind regards...
- 4 years ago
- Forum: Syntax
- Topic: Storing solution
- Replies: 2
- Views: 2524
Re: Storing solution
Dear Renger,
Thank you very much for the formulation.
kind regards,
Rofice
Thank you very much for the formulation.
kind regards,
Rofice
- 4 years ago
- Forum: Syntax
- Topic: Storing solution
- Replies: 2
- Views: 2524
Storing solution
Dear all, I am facing problem in formulating syntax for storing (recording) the frequency (how many times the same solution is found) of solution. In other words, in the attached model sensitivity analysis is performed and after each iteration, a new solution is found. What I want is to systematical...
- 4 years ago
- Forum: Modeling
- Topic: Integer cut
- Replies: 7
- Views: 7154
Re: Integer cut
Dear Renger and Steve, I really appreciate your suggestions and formulations. Steve, I think you forget to attach the second model because the second file is only GDX. I have made a formulation that systematically adds cuts to model and finds all feasible solution and terminates as soon solution bec...
- 4 years ago
- Forum: Modeling
- Topic: Integer cut
- Replies: 7
- Views: 7154
Re: Integer cut
Hi Renger, Yes, I did. I don't get it. I don't have integer variables in my real model; it only contains binary variables and continuous variables. That's why I just formulated simple model consisting of only binary variables. Now, if I want to use systematic enumeration procedure do I need extra bi...
- 4 years ago
- Forum: Modeling
- Topic: Integer cut
- Replies: 7
- Views: 7154
Integer cut
Dear all, Is there any way to enumerate all possible solutions of attached model in a systematic manner? Currently, I am adding integer cuts one by one after finding solution. I will really appreciate for addressing this issue. Also I want record solution of each integer cut. Best regards, Rofice
- 5 years ago
- Forum: Syntax
- Topic: linearization of power function
- Replies: 1
- Views: 2534
linearization of power function
Hi, I am facing problem in linearizing the below non-separable function. Any suggestions for linearization of the con_1 ?? Best Regards, Rofice variable c ; positive Variable x,y; integer variable z; equation con_1,con_2; con_1.. x =e= y**z; con_2.. c =e= 3*x ; y.up = 3; z.lo = 1; z.up = 4; model m ...