I have posted the following on MO, but couldn't get any answer. So now posting it here for any help that I can get.

I guess this forum doesn't support LATEX, so I am posting my question as an image.

The image of the question


asked 25 Aug '15, 09:21

UbaAbd's gravatar image

accept rate: 0%

Assuming that the \(z_{ijp}\) are continuous variables, you cannot get precisely what you want. What is attainable is \[ c_{ip}=\begin{cases} 0 & \textrm{if }\sum_{j=1}^{s_{max}}z_{ijp}=0\\ 1 & \textrm{if }\sum_{j=1}^{s_{max}}z_{ijp}\ge\epsilon \end{cases} \]for some small \(\epsilon \gt 0\). This is a variation on a commonly asked question; try searching the forum to find an answer.


answered 25 Aug '15, 15:29

Paul%20Rubin's gravatar image

Paul Rubin ♦♦
accept rate: 19%

The matrix Z is binary valued, i.e., all the elements of Z matrix are either zero or one.

(25 Aug '15, 15:37) UbaAbd

In that case, it's fairly trivial: \(c_{ip}\ge z_{ijp}\,\forall j\) and \(c_{ip}\le \sum_j z_{ijp}\).

(25 Aug '15, 15:42) Paul Rubin ♦♦

Thats perfect. Thanks @paul.

(26 Aug '15, 05:02) UbaAbd
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • 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



Asked: 25 Aug '15, 09:21

Seen: 1,265 times

Last updated: 26 Aug '15, 05:02

OR-Exchange! Your site for questions, answers, and announcements about operations research.