Search found 8 matches

by sph_93
3 years ago
Forum: Modeling
Topic: Problem with binary Variables
Replies: 2
Views: 2143

Re: Problem with binary Variables

Hello, Michael,

thanks for your help, but I can't get it programmed. Isn't it also possible to declare bc(j,p),bp(j,p), bs(i,j,p) as parameter? Then link them with an ' if ' assignment to the binary variables z(l,i,js), y(l,j,s) and v(l,j,s)?

Thanks a lot
by sph_93
3 years ago
Forum: Modeling
Topic: Problem with binary Variables
Replies: 2
Views: 2143

Problem with binary Variables

Hello,

I have a problem with presenting this equation as a linear problem:
grafik.png
grafik.png (5.47 KiB) Viewed 2143 times
When binary variables are multiplied by each other, it is no longer a linear problem. Can you help me to make this problem linear to run it with MIP solver.




Thank you very much!
new.gms
(8.52 KiB) Downloaded 211 times
by sph_93
3 years ago
Forum: Modeling
Topic: Infeasible Model
Replies: 1
Views: 1796

Infeasible Model

Hello, My model gives the error in the execution:row '...' infeasible, all entries at implied bounds The objective function with the first three additional functions can be executed without problems. In combination with the fourth and fifth additional functions, this error is displayed. grafik.png C...
by sph_93
3 years ago
Forum: Syntax
Topic: Dynamic set problem
Replies: 5
Views: 3859

Re: Dynamic set problem

If I try to link the equation with phi, I get an error. This is what I've been doing:
grafik.png
grafik.png (7.45 KiB) Viewed 3747 times
I'm sorry, I don't understand what you mean by dummy period.
I don't know how to define dummy period and then put it into the equation. I would be so grateful if you could help me with that.
by sph_93
3 years ago
Forum: Syntax
Topic: Dynamic set problem
Replies: 5
Views: 3859

Re: Dynamic set problem

Hello, Michael, thank you very much for your help. Your tip helped. I still have two last problems. I have 3 microperiods s in 2 macroperiods t.The first microperiod in each macroperiod should get a fixed start time in the set phi. How can I program this problem? grafik.png I've tried: Set phi(s,t) ...
by sph_93
3 years ago
Forum: Syntax
Topic: Dynamic set problem
Replies: 5
Views: 3859

Dynamic set problem

Hello, i have problems with the creation of a dynamic set. I have two macroperiods, each of which should contain three microperiods. But I can't get them linked.Here are my sets: grafik.png And here I have tried to link them together: grafik.png I get the error "unknown symbol". I hope you...
by sph_93
3 years ago
Forum: Syntax
Topic: SUM-Problem
Replies: 3
Views: 2558

Re: SUM-Problem

Hello, Michael,

thank you for your prompt assistance. The equations are now without errors. But I have another problem now. I have declared the parameters with values, but when I execute the model I get the value 0 for the target function.
Can you help me with that?
Untitled_6.gms
(7.63 KiB) Downloaded 214 times
by sph_93
3 years ago
Forum: Syntax
Topic: SUM-Problem
Replies: 3
Views: 2558

SUM-Problem

Hello Everybody, I have tried a model with an objective function and some secondary functions. grafik.png With these two secondary functions, I get errors again and again and I do not know why.(Error125,171) This is my written code for the two functions: grafik.png I can't find anything in the error...