<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Priyanki,<div><br></div><div>Can you give me more information about the information you need.&nbsp;</div><div><br></div><div>CMPL and pyCmpl provide information for each variable and constraint about the activity, the bounds and if the model isn't &nbsp;an integer program the marginals (shadow price &nbsp;or reduced cost).</div><div><br></div><div>Cheers,</div><div><br></div><div>Mike</div><div><br></div><div><br><div><div>Am 24.09.2013 um 17:15 schrieb Priyanki Sharma:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt">Hello Mike,<br><br>Is there any way of generating any default reports like sensitivity report etc in Coliop . I mean the kind of default report we can produce in excel risk solver etc. <br>Thanks <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;">Sent:</span></b> Thursday, 19 September 2013 6:39 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re:
 [Cmpl] help<br> </font> </div> <div class="y_msg_container"><br><div id="yiv6586486592"><div>Hi Priyanki,<div><br></div><div>Thank you for the kind words.</div><div><br></div><div>One note to the term weak SOS. It wasn't a description of the quality of your constraints.&nbsp;</div><div><br></div><div>A weak SOS1 is like: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x[1] + x[2] &nbsp;+ x[3] &lt;= 1. That means (assuming that the x variables are binaries for projects) that maximally one project can be realized.</div><div>A strong SOS1 looks like: &nbsp;&nbsp; x[1] + x[2] &nbsp;+ x[3] = 1 Exact one project is to be realized.&nbsp;</div><div><br></div><div>Cheers,</div><div><br></div><div>Mike</div><div><br><div><div>Am 19.09.2013 um 01:14 schrieb Priyanki Sharma:</div><br class="yiv6586486592Apple-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;">Hello Mike,<br><br>First of all, thank you so much. I have known so much more about the usage of cmpl through this code.&nbsp; The usage of loops in the variable section is surely new to me. Yes I agree that the con2 was weak. Initially, Con1 has worked with your previous suggestion but I think this is a better way of dealing with it. <br>Thanks a lot Mike for your help. Its been a learning experience for me. I will keep all your suggestions in mind when I do the next code. Really appreciate your help. <br><br>Have a good day,<br><br>Cheers :))<br>Priyanki<br><br>&nbsp;<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 rel="nofollow" ymailto="mailto:mike.steglich@berlin.de" target="_blank" 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 rel="nofollow" ymailto="mailto:priyankiarch@yahoo.com" target="_blank" href="mailto:priyankiarch@yahoo.com">priyankiarch@yahoo.com</a>&gt; <br> <b><span style="font-weight:bold;">Sent:</span></b> Wednesday, 18 September 2013 8:20 PM<br> <b><span style="font-weight:bold;">Subject:</span></b> Re: [Cmpl] help<br> </font> </div> <div class="yiv6586486592y_msg_container"><br><div id="yiv6586486592"><div>Hello Priyanki,<div><br></div><div>please find attached a CMPL file that should solve your problem. The problem was that your with the first proposal all language and plane constraints have to be fulfilled for an valid crew assignment. This forces your model to be
 infeasible. But if only one of the constraints (for both groups … language and plane) is satisfied a crew assignment is valid. Therefore I determine the valid crew combination due to the language and plane skills in the parameter section and use
 the corresponding parameter arrays&nbsp;valid_lan_combination[i,j,k] and&nbsp;valid_lan_combination[i,j,m] within the changed constraint con1. Additionally I calculate the max scores for each valid crew and use it in the objective function.<div><br></div><div>The second problem was your formulations of the weak SOS 1. Please take a look of the reformulated constraint con2.</div><div><br></div><div></div></div></div></div><br><div id="yiv6586486592"><div><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="yiv6586486592Apple-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;">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 rel="nofollow" ymailto="mailto:mike.steglich@berlin.de" target="_blank" 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 rel="nofollow" ymailto="mailto:priyankiarch@yahoo.com" target="_blank" href="mailto:priyankiarch@yahoo.com">priyankiarch@yahoo.com</a>&gt;
 <br><b><span style="font-weight:bold;">Cc:</span></b>
 "<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>" &lt;<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>&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="yiv6586486592y_msg_container"><br><div id="yiv6586486592"><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="yiv6586486592Apple-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="yiv6586486592msg-body yiv6586486592inner  yiv6586486592undoreset" style=""><div id="yiv6586486592"><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 rel="nofollow" target="_blank" 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><br><br></div> </div> </div>  </div></div></blockquote></div><br></div></div></div><br><br></div> </div> </div>  </div></div></blockquote></div><br></div></body></html>