Search found 28 matches

by Rofice
5 years ago
Forum: Syntax
Topic: Syntax for sets
Replies: 2
Views: 2825

Re: Syntax for sets

Thanks Sir.
by Rofice
5 years ago
Forum: Syntax
Topic: Syntax for sets
Replies: 2
Views: 2825

Syntax for sets

Hi, Kindly help me in writing syntax. Set "ssmxr" is the function of (mxr,str). I have two objectives for the set "ssmxr". (1): it can only take values of selected mixers for linearization (see set smxr). (2): it can only take first value of str of selected mixers for linearizati...
by Rofice
5 years ago
Forum: Syntax
Topic: How to model iterative calculation?
Replies: 3
Views: 3990

Re: How to model iterative calculation?

Thanks cladelpino for your reply. Let me explain aforementioned problem in another way. I am enclosing a fabricated model to explain my problem in more detail. In the below model profit comes from selling product and subtracting raw material cost. Rate of profit depends upon the selling price of pro...
by Rofice
5 years ago
Forum: Syntax
Topic: How to model iterative calculation?
Replies: 3
Views: 3990

How to model iterative calculation?

Hi! I want to perform calculations similar to goal seek function in Microsoft Excel. Below is the problem statement. Let a and b are scalar and their values are below a=2 b=10 c is a parameter and can be estimated by the following relation c=a+b Ofcourse value of 'c' will be 12, but I want to model ...
by Rofice
6 years ago
Forum: Modeling
Topic: Unbounded Solution
Replies: 2
Views: 3756

Re: Unbounded Solution

Dear Renger,
Thank you for your response, I caught your hint. Actually I was not aware that I can use variable f3 as f3.l and then define f4 as a parameter and find f4. Thanks for sharing knowledge.

Warm Regards,
Rofice
by Rofice
6 years ago
Forum: Modeling
Topic: Unbounded Solution
Replies: 2
Views: 3756

Unbounded Solution

Hi All, I am trying to decompose model(may be it is also called multi-objective problem ) in such a way a that value of variables estimated in first sub model can be used for second sub model. But in doing so second model leading to infeasible solution due to unbounded. Please give me suggestions ho...
by Rofice
6 years ago
Forum: Syntax
Topic: LOOP
Replies: 2
Views: 4082

Re: LOOP

Thank you Sir, It works :) Can you recommend any book with case studies or examples for loop functions? When you reach 20 the calculation is not executed so a(i+1) is equal to zero. which means it is below 20 and the process starts over again. so you will need to build in a switch that tells you, yo...
by Rofice
6 years ago
Forum: Syntax
Topic: LOOP
Replies: 2
Views: 4082

LOOP

Set i /0*100/ ; parameter a(i) ; a('0') = 0 ; loop(i, a(i+1) = a(i)+1 ; ) ; Display a; How I can transform the above loop, so that iteration stop when a(i+1) = 20 I used the following loop(i$(a(i) lt 20), a(i+1) = (a(i)+1)$(a(i) lt 20) ; but when value reaches to 20, iteration keep going. Best Regards
by Rofice
6 years ago
Forum: Syntax
Topic: Reformulation
Replies: 2
Views: 3101

Re: Reformulation

Hi Renger, Reason for approximation is, I am making MIP model. I will be pleased if you can share your thoughts on this, Actually I solved this model completely as MINLP but later my boss want global solution. So my question is why we need global solution? As far as I know local solution may miss tr...
by Rofice
6 years ago
Forum: Syntax
Topic: Reformulation
Replies: 2
Views: 3101

Reformulation

Hi all,

I need to transform (approximate) this equation x =e= Fc/F where all x, fc & f are variables.
Bounds of variables are x.lo = 0; x.up = 1 ; fc.lo = 0 ; fc.up=100; f.lo =0; f.up = 100;

Any suggestions?

Warms Regards,
Rofice