Search found 66 matches

by PeterBe
6 years ago
Forum: Modeling
Topic: Modeling the absolute value
Replies: 23
Views: 21489

Re: Modeling the absolute value

Thanks Manassaldi for your answers and comments.

Would you mind telling me a little bit more about the "basic step". Is that a generall principle for modelling absolut values or what exactly does this method aim for?
by PeterBe
6 years ago
Forum: Modeling
Topic: Ensuring realations between decision variables
Replies: 6
Views: 5857

Ensuring realations between decision variables

Hi guys, I have a binary variable x(t) for every minute of a day (1440). This binary variable indicates if a heating device is on or off. Now I want to ensure that the device does not switch from on to off quite frequently. This is why I want to insert a restriction which ensures that if the heating...
by PeterBe
6 years ago
Forum: Modeling
Topic: Modeling the absolute value
Replies: 23
Views: 21489

Re: Modeling the absolute value

Hi, I inserted following equations: eq_z_firstCondition(t).. z(t) =l= 2 - x(t) - y(t); eq_z_secondCondition(t).. z(t) =l= x (t) + y(t); ... u =e= sum((t), z(t)); ... Solve model using mip maximizing u; z(t) is an auxilliary variable I think that this might be same as in your example, doesn't it?
by PeterBe
6 years ago
Forum: Modeling
Topic: Modeling the absolute value
Replies: 23
Views: 21489

Re: Modeling the absolute value

Hi, Sorry that I have not written anything since a fairly long time. But I do not really understand the approach form Manassaldi and my objective has slightly changed. So I want to maximize the difference: max: SUM(t=0 to T) {abs(x_t - y_t)} where x_t is a binary decision variable and y_t is also a ...
by PeterBe
6 years ago
Forum: Modeling
Topic: Modeling the absolute value
Replies: 23
Views: 21489

Re: Modeling the absolute value

Sorry it has been a while since I posted this question. Nonetheless I unforunately have not solved this problem. Basically my problem has slightly changend. Now I want to solve the following prolbem: max: SUM(t=0 to T) {abs(x_t - y_t)} where x_t is a binary decision variable and y_t is also a binary...
by PeterBe
7 years ago
Forum: Modeling
Topic: Modeling the absolute value
Replies: 23
Views: 21489

Modeling the absolute value

Hi guys, I just started to use GAMS (so I have no experience whatsoever). I wanted to know whether and how it is possible to model the absolute values of binary variables. So I want to maximize the difference: max: SUM(t=0 to T) {abs(x_t - c_t)} where x_t is a binary decision variable and c_t is als...