Search found 6 matches

by gnaeidj
4 days ago
Forum: Modeling
Topic: Modeling the absolute value
Replies: 21
Views: 613

Re: Modeling the absolute value

Hi, the dollar command is used to manipulate the sets. For example, if the restrictions eq1, eq2, eq3 and eq4 does not apply to the last "t": eq1(n,m,t)$(ord(t) ne card(t)).. 1 - z(n,m,t) + z(n,m,t+1) + absvalue(n,m,t) =g= 1; eq2(n,m,t)$(ord(t) ne card(t)).. 1 - z(n,m,t) + 1-z(n,m,t+1) + ...
by gnaeidj
6 days ago
Forum: Modeling
Topic: Modeling the absolute value
Replies: 21
Views: 613

Re: Modeling the absolute value

Just something I didn't catch
what did you mean by "$" command?
by gnaeidj
6 days ago
Forum: Modeling
Topic: Modeling the absolute value
Replies: 21
Views: 613

Re: Modeling the absolute value

Thank you so much
by gnaeidj
1 week ago
Forum: Modeling
Topic: Modeling the absolute value
Replies: 21
Views: 613

Re: Modeling the absolute value

Hi, Z is a binary variable and J is a scalar actually the Z variable represents a line status (being in circuit or out of it) and J represents the maximum number of lines which can get out of service I want to use the mentioned constraint to express the maximum number of switching in a system, but I...
by gnaeidj
1 week ago
Forum: Modeling
Topic: Modeling the absolute value
Replies: 21
Views: 613

Re: Modeling the absolute value

Dear Friend I've Written a MIQCP code which has an absolute value in its constraints and I don't know how exactly I must write it so that the code works. here is the constraint: sum((n,m,t),abs(z(n,m,t) - z(n,m,t+1)) =l= 2*j the summation basically is based on t (time) and I want this absolute value...
by gnaeidj
5 months ago
Forum: Syntax
Topic: Error 143
Replies: 0
Views: 194

Error 143

Hi everyone I've got a problem while modeling my problem and I wanted you to help me, if you can so: My model contains a quadratic term in the objective function and this makes my Linear model non-linear. I tried to write the quadratic term separately as a condition and use its result as a first-ord...

Go to advanced search