<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div></div><div><br></div><div>Hope that helps.&nbsp;</div><div><br></div><div>Cheers,</div><div><br></div><div>Mike</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br><div><div>Am 18.09.2013 um 00:44 schrieb Priyanki Sharma:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: tahoma, 'new york', times, serif; font-size: 10pt; position: static; z-index: auto; ">Mike,<br><br>Thanks a lot for your help on the first part of the question. Can you please tell me how to calculate the max value for the second part of the question. How to generate the loop that calculates the max as score.&nbsp; I would really appreciate that. <br>Thanks again<br><br>cheers<br>Priyanki<br><div><span><br></span></div><div><br></div>  <div style="font-family: tahoma, new york, times, serif; font-size: 10pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Mike Steglich &lt;<a href="mailto:mike.steglich@berlin.de">mike.steglich@berlin.de</a>&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Priyanki Sharma &lt;<a href="mailto:priyankiarch@yahoo.com">priyankiarch@yahoo.com</a>&gt; <br><b><span style="font-weight: bold;">Cc:</span></b>
 "<a href="mailto:cmpl@list.coin-or.org">cmpl@list.coin-or.org</a>" &lt;<a href="mailto:cmpl@list.coin-or.org">cmpl@list.coin-or.org</a>&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, 18 September 2013 4:07 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [Cmpl] help<br> </font> </div> <div class="y_msg_container"><br><div id="yiv1108106827"><div>Hello Pryanki,<div><br></div><div>I did not check the entire model. But your first group of constraints (e.g.&nbsp;&nbsp;x[i,j] * R_lan[i,k] &gt;= 10)&nbsp;&nbsp;forces your model to be infeasible:</div><div><br></div><div>For the two cases for a x[i,j] we have the following results</div><div>1)&nbsp;x[i,j] = 0 &nbsp; -&gt; &nbsp;&nbsp;x[i,j] * R_lan[i,k] &gt;= 10 &nbsp;-&gt; False, because 0&gt;=10 is wrong</div><div>2)&nbsp;x[i,j] = 1 &nbsp; -&gt; &nbsp;&nbsp;x[i,j] * R_lan[i,k] &gt;= 10 &nbsp;-&gt; True or False, because 1* &nbsp;R_lan[i,k]&nbsp;&gt;=10 is true if&nbsp;R_lan[i,k] &gt;= 10 or false if&nbsp;R_lan[i,k] &lt; 10</div><div><br></div><div>A
 better formulation could be:</div><div>R_lan[i,k] &gt;= 10&nbsp;* x[i,j]&nbsp;</div><div><br></div><div>because:</div><div><div>1)&nbsp;x[i,j] = 0 &nbsp; -&gt; &nbsp;R_lan[i,k] &gt;= 10&nbsp;* x[i,j]&nbsp;&nbsp;-&gt; True, because&nbsp;R_lan[i,k]&nbsp;&gt;=0 is true</div><div>2)&nbsp;x[i,j] = 1 &nbsp; -&gt; &nbsp;R_lan[i,k] &gt;= 10&nbsp;* x[i,j]&nbsp; -&gt; True, because R_lan[i,k]&nbsp;&gt;=10 is true if&nbsp;R_lan[i,k] &gt;= 10 or &nbsp;if&nbsp;R_lan[i,k] &lt; 10 then x[i,j] is forced to become 0</div></div><div><br></div><div><br></div><div>Cheers,</div><div><br></div><div>Mike</div><div><br></div><div><br><div><div>Am 17.09.2013 um 18:40 schrieb Priyanki Sharma:</div><br class="yiv1108106827Apple-interchange-newline"><blockquote type="cite"><div><div style="color:#000;background-color:#fff;font-family:tahoma, new york, times, serif;font-size:10pt;"><div class="yiv1108106827msg-body yiv1108106827inner  yiv1108106827undoreset" style=""><div id="yiv1108106827"><div><div style="color:#000;background-color:#fff;font-family:tahoma, new york, times, serif;font-size:10pt;"><div>Hello ,<br></div><div><br></div><div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;background-color:transparent;font-style:normal;">I
 have been trying to solve this cmpl code. It gives infeasible all the 
time. I don't understand why this is happening. I have attached the 
question in a word document and the cmpl code . I am trying to solve the
 first part of the question but there is something wrong with the first 
constraint called " con1". I just can't figure out what is going wrong. 
Its quite urgent. Could someone please help. I would really appreciate 
any help asap.</div><div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;background-color:transparent;font-style:normal;">Thanks<br></div><div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;background-color:transparent;font-style:normal;"><br></div><div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;background-color:transparent;font-style:normal;">Regards</div><div style="color:rgb(0, 0, 0);font-size:13.3333px;font-family:tahoma, new york, times, serif;background-color:transparent;font-style:normal;">Priyanki </div></div></div></div></div></div></div><span>&lt;During the Second World War the Royal Air Force.docx&gt;</span><span>&lt;final
 test4.cmpl&gt;</span>_______________________________________________<br>Cmpl mailing list<br><a rel="nofollow" ymailto="mailto:Cmpl@list.coin-or.org" target="_blank" href="mailto:Cmpl@list.coin-or.org">Cmpl@list.coin-or.org</a><br><a href="http://list.coin-or.org/mailman/listinfo/cmpl">http://list.coin-or.org/mailman/listinfo/cmpl</a></blockquote></div><br></div></div></div><br><br></div> </div> </div>  </div></div><span>&lt;During the Second World War the Royal Air Force.docx&gt;</span><span>&lt;final test5.cmpl&gt;</span></blockquote></div><br></div></div></div></div></div><br></div></div></div><br></body></html>