<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>Hello Priyanki,</div><div><br></div><div>Welcome to the Cmpl user group! &nbsp;</div><div><br></div><div>For doing some calculations with the objective value of a solved problem you can use pyCmpl, that is part of the Cmpl package since version 1.8. pyCmpl is Cmpl's Python API and is described in the manual in chapter 11.&nbsp;</div><div><br></div><div>It is necessary to create a short python script additionally to your CMPL model.&nbsp;</div><div><br></div><div>e.g. sample.py</div><div>
                
        
        
                <div class="page" title="Page 119">
                        <div class="section">
                                <div class="layoutArea">
                                        <div class="column">
                                                <pre><span style="font-size: 10.000000pt; font-family: 'CourierNewPSMT'">#!/usr/bin/python
from pyCmpl import *
</span><span style="font-family: CourierNewPSMT; font-size: 10pt; ">model = Cmpl("sample.cmpl")</span></pre><pre><span style="font-family: CourierNewPSMT; font-size: 10pt; ">model.solve()</span></pre><pre><span style="font-family: CourierNewPSMT; font-size: 10pt; ">valueFromModel=model.solution.value</span></pre><pre><span style="font-family: Helvetica; white-space: normal; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">To execute this script including solving your model you have to type pyCmpl sample.py</span></pre><pre><font face="Helvetica"><span style="white-space: normal; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">There are a lot of opportunities to manipulate the parameters of Cmpl models and to obtain the solution(s) with pyCmpl. You can find some examples in chapter 11.&nbsp;</span></font></pre><pre><font face="Helvetica"><span style="white-space: normal; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">Could you subscribe to the Cmpl mailing list because after subscribing your messages will be accepted automatically by the system.</span></font></pre><pre><font face="Helvetica"><span style="white-space: normal; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><br></span></font></pre><pre><font face="Helvetica"><span style="white-space: normal; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">Cheers</span></font></pre><pre><font face="Helvetica"><span style="white-space: normal; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><br></span></font></pre><pre><font face="Helvetica"><span style="white-space: normal; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);">Mike</span></font></pre><pre><font face="Helvetica"><span style="white-space: normal; -webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469);"><br></span></font></pre>
                                        </div>
                                </div>
                        </div>
                </div></div><div><br></div><div><br>Am 22.08.2013 um 17:36 schrieb Priyanki Sharma &lt;<a href="mailto:priyankiarch@yahoo.com">priyankiarch@yahoo.com</a>&gt;:<br><br></div><blockquote type="cite"><div><div style="color:#000; background-color:#fff; font-family:tahoma, new york, times, serif;font-size:10pt"><div>hello.....</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;"><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 am a new member of this group. I am a recent user of coliop / cmpl codes. I am wondering if I could get some assistance in how you can deduct a constant from the optimized objective function to get, say for example net loss. Is there any way in which you can actually use the optimized value of objective function (obtained after solving)&nbsp; for any further calculation. The manual does not provide much info. Could someone help please????</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;"><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;">cheers</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<br></div></div></div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Cmpl mailing list</span><br><span><a href="mailto:Cmpl@list.coin-or.org">Cmpl@list.coin-or.org</a></span><br><span><a href="http://list.coin-or.org/mailman/listinfo/cmpl">http://list.coin-or.org/mailman/listinfo/cmpl</a></span></div></blockquote></body></html>