If X1+X2+....XN is >0 then Y will be 1 otherwise 0

Hi Gamesworld Group

This is pankaj Goyal. I need to write one constraint that detail is as mentioned below…

I have a variable called X Range:-(0,1)
Then if anyone of X value is 1 then Y will be one otherwise 0

I have many possibilities but i an not able to find solution in a single equation
So is it necessary to write two constraint for this problem or it can be done in one equation.

If it can be done in one equation then please help me .

Thanx in advance


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.

Hi Pankaj!

What I understand from your email is that you have two binary (value 1
or 0 [or are they real variables ?]) variables (X and Y) [projected
over sets?], and you wish the value of X and Y to be the same.

Is this correct ??

Regards
Claudio

On Thu, Jan 16, 2014 at 8:35 AM, Pankaj Goyal wrote:

Hi Gamesworld Group

This is pankaj Goyal. I need to write one constraint that detail is as
mentioned below…

I have a variable called X Range:-(0,1)
Then if anyone of X value is 1 then Y will be one otherwise 0

I have many possibilities but i an not able to find solution in a single
equation
So is it necessary to write two constraint for this problem or it can be
done in one equation.

If it can be done in one equation then please help me .

Thanx in advance


“gamsworld” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.

\

Hi
Try this:
y(i)=l= M*(1-x(j));
where M is as large as real number.


On Wed, Feb 5, 2014 at 9:10 PM, Claudio Delpino wrote:

Hi Pankaj!

What I understand from your email is that you have two binary (value 1
or 0 [or are they real variables ?]) variables (X and Y) [projected
over sets?], and you wish the value of X and Y to be the same.

Is this correct ??

Regards
Claudio

On Thu, Jan 16, 2014 at 8:35 AM, Pankaj Goyal wrote:

Hi Gamesworld Group

This is pankaj Goyal. I need to write one constraint that detail is as
mentioned below…

I have a variable called X Range:-(0,1)
Then if anyone of X value is 1 then Y will be one otherwise 0

I have many possibilities but i an not able to find solution in a single
equation
So is it necessary to write two constraint for this problem or it can be
done in one equation.

If it can be done in one equation then please help me .

Thanx in advance


“gamsworld” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.

\

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.

Hi
Try this:
y(i)=l= M*(1-x(i));
where M is as large as real number.


On Wed, Feb 5, 2014 at 9:43 PM, Alireza Bahari wrote:

Hi
Try this:
y(i)=l= M*(1-x(j));
where M is as large as real number.


On Wed, Feb 5, 2014 at 9:10 PM, Claudio Delpino wrote:

Hi Pankaj!

What I understand from your email is that you have two binary (value 1
or 0 [or are they real variables ?]) variables (X and Y) [projected
over sets?], and you wish the value of X and Y to be the same.

Is this correct ??

Regards
Claudio

On Thu, Jan 16, 2014 at 8:35 AM, Pankaj Goyal wrote:

Hi Gamesworld Group

This is pankaj Goyal. I need to write one constraint that detail is as
mentioned below…

I have a variable called X Range:-(0,1)
Then if anyone of X value is 1 then Y will be one otherwise 0

I have many possibilities but i an not able to find solution in a single
equation
So is it necessary to write two constraint for this problem or it can be
done in one equation.

If it can be done in one equation then please help me .

Thanx in advance


“gamsworld” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.


\

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.

Hi, Alireza Bahari,
In such kind of formulation how we can decide value of M ?
Plz suggest any method.


On Wed, Feb 5, 2014 at 11:43 PM, Alireza Bahari wrote:

Hi
Try this:
y(i)=l= M*(1-x(i));
where M is as large as real number.


On Wed, Feb 5, 2014 at 9:43 PM, Alireza Bahari wrote:

Hi
Try this:
y(i)=l= M*(1-x(j));
where M is as large as real number.


On Wed, Feb 5, 2014 at 9:10 PM, Claudio Delpino wrote:

Hi Pankaj!

What I understand from your email is that you have two binary (value 1
or 0 [or are they real variables ?]) variables (X and Y) [projected
over sets?], and you wish the value of X and Y to be the same.

Is this correct ??

Regards
Claudio

On Thu, Jan 16, 2014 at 8:35 AM, Pankaj Goyal wrote:

Hi Gamesworld Group

This is pankaj Goyal. I need to write one constraint that detail is as
mentioned below…

I have a variable called X Range:-(0,1)
Then if anyone of X value is 1 then Y will be one otherwise 0

I have many possibilities but i an not able to find solution in a single
equation
So is it necessary to write two constraint for this problem or it can be
done in one equation.

If it can be done in one equation then please help me .

Thanx in advance


“gamsworld” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.


\

To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.



\

Kailash Chand Sharma
Research Scholar
Electrical Engineering Department
Malaviya National Institute of Technology Jaipur
Phone: +91-9887221353 (M)


To unsubscribe from this group and stop receiving emails from it, send an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.

Hello,

Is x(i) a real or a binary variable ? How is it related to y(i) logically ?

In the kind formulation Alireza suggested, when x(i) is 1, y(i) will
be constrained to 0 which appears to be the opposite of what you
asked.

Choosing a value of M for a big-m reformulation can turn out to not be
a trivial task, but you should be fine by toying around with it until
you like the results. It depends on the range of the variables that
are involved in reformulated equations.

Regards
Claudio

On Thu, Feb 6, 2014 at 4:34 AM, Kailash Sharma
wrote:

Hi, Alireza Bahari,
In such kind of formulation how we can decide value of M ?
Plz suggest any method.

On Wed, Feb 5, 2014 at 11:43 PM, Alireza Bahari wrote:

Hi
Try this:
y(i)=l= M*(1-x(i));
where M is as large as real number.

On Wed, Feb 5, 2014 at 9:43 PM, Alireza Bahari
wrote:

Hi
Try this:
y(i)=l= M*(1-x(j));
where M is as large as real number.

On Wed, Feb 5, 2014 at 9:10 PM, Claudio Delpino
wrote:

Hi Pankaj!

What I understand from your email is that you have two binary (value 1
or 0 [or are they real variables ?]) variables (X and Y) [projected
over sets?], and you wish the value of X and Y to be the same.

Is this correct ??

Regards
Claudio

On Thu, Jan 16, 2014 at 8:35 AM, Pankaj Goyal
wrote:

Hi Gamesworld Group

This is pankaj Goyal. I need to write one constraint that detail is as
mentioned below…

I have a variable called X Range:-(0,1)
Then if anyone of X value is 1 then Y will be one otherwise 0

I have many possibilities but i an not able to find solution in a
single
equation
So is it necessary to write two constraint for this problem or it can
be
done in one equation.

If it can be done in one equation then please help me .

Thanx in advance


You received this message because you are subscribed to the Google
Groups
“gamsworld” group.
To unsubscribe from this group and stop receiving emails from it, send
an
email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.


You received this message because you are subscribed to the Google
Groups “gamsworld” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.


“gamsworld” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.


Kailash Chand Sharma
Research Scholar
Electrical Engineering Department
Malaviya National Institute of Technology Jaipur
Phone: +91-9887221353 (M)


“gamsworld” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to gamsworld+unsubscribe@googlegroups.com.
To post to this group, send email to gamsworld@googlegroups.com.
Visit this group at http://groups.google.com/group/gamsworld.
For more options, visit https://groups.google.com/groups/opt_out.

\