Google Groups Home
Help | Sign in
Indicator Constraints
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
arush  
View profile
 More options Aug 2, 7:51 pm
Newsgroups: sci.op-research
From: arush <arushgad...@gmail.com>
Date: Sat, 2 Aug 2008 16:51:46 -0700 (PDT)
Local: Sat, Aug 2 2008 7:51 pm
Subject: Indicator Constraints
I need to impose the following constraints :

  over(i) = 1 --------> y(i) >= 1
  over(i) = 0 --------> y(i) <= 0
  under(i) = 1 ------> y(i) <= -1
  under(i) = 0 -------> y(i) >= 0

over(i) , under(i) are binary variables. y(i) is a integer variable.

Thanks
Arush.


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rob Pratt  
View profile
 More options Aug 2, 8:54 pm
Newsgroups: sci.op-research
From: "Rob Pratt" <Rob.Pr...@sas.com>
Date: Sat, 2 Aug 2008 20:54:14 -0400
Local: Sat, Aug 2 2008 8:54 pm
Subject: Re: Indicator Constraints
"arush" <arushgad...@gmail.com> wrote in message

news:7d9032c0-b4a6-42f7-b9b0-c465fad6b189@l42g2000hsc.googlegroups.com...

>I need to impose the following constraints :

>  over(i) = 1 --------> y(i) >= 1
>  over(i) = 0 --------> y(i) <= 0
>  under(i) = 1 ------> y(i) <= -1
>  under(i) = 0 -------> y(i) >= 0

> over(i) , under(i) are binary variables. y(i) is a integer variable.

> Thanks
> Arush.

If y has bounds ymin and ymax, then the following will work:

1 - y <= M_1 * (1 - over)
y - 0 <= M_2 * over
y + 1 <= M_3 * (1 - under)
0 - y <= M_4 * under

where

M_1 = 1 - ymin
M_2 = ymax
M_3 = ymax + 1
M_4 = -ymin

Rob Pratt


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google