# if else constarint linear programming

 0 Hi, I want to write a constraint such that if x=y then z=1 otherwise z=0 x={0,1,2} y={0,1,2} z={0,1} do you have any idea= asked 08 Dec '15, 15:42 GKGKGK 11●3 accept rate: 0%

 1 Have a look at link text. Make the following substitutions: my $$y$$ is your $$x-y$$, my $$m$$ is 0 in your case, and my $$x$$ is your $$z$$. answered 08 Dec '15, 17:12 Paul Rubin ♦♦ 14.6k●4●12 accept rate: 19% thank you so much! (09 Dec '15, 09:41) GKGKGK
 toggle preview community wiki

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "Title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported

Tags: