<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" id="owaParaStyle" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
</head>
<body dir="ltr" tabindex="0" id="" style="">
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:#000000; margin:0">
Ok, tried the following and am getting a different error, 'unexpected SUM':
<div><br>
</div>
<div>sum{ t in T, s in S : I_ts[t,s] * c_s[s] * m_ts[t,s] - I[t,s] * c_s[s] * sum{ r in R, k in K : w_rtk[r,t,k] * x_rtk[r,t,k] } }</div>
<div><br>
</div>
<div>I assume it's the same basic problem?</div>
<div><br>
</div>
<div>Also, two minor enhancements that would make debugging easier. First, having position within the line though that may be difficult. The other would be to include the actual symbol encountered for the SYMBOL_UNDEF error. I'm willing to put a patch together
 later if nobody else gets to it, just need to get this current project done first.</div>
<div><br>
<div dir="auto" style="color:rgb(40,40,40)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Mike Steglich &lt;mike.steglich@th-wildau.de&gt;<br>
<b>Sent:</b> Monday, September 16, 2013 4:29 PM<br>
<b>To:</b> Michael Bond<br>
<b>Cc:</b> cmpl@list.coin-or.org<br>
<b>Subject:</b> Re: [Cmpl] Yet another probably basic question</font>
<div>&nbsp;</div>
</div>
<div>
<div>Unfortunately it is not permitted to put variables in brackets. We change that ... but in the meantime you have to reformulate your objective function into two terms.</div>
<div><br>
Am 16.09.2013 um 22:05 schrieb Michael Bond &lt;<a href="mailto:mbond@videologygroup.com">mbond@videologygroup.com</a>&gt;:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div name="divtagdefaultwrapper" id="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:#000000; margin:0">
Is it possible to implement the following as part of an objective and if so how would I represent it, removing the '-' at the beginning of course:
<div><br>
</div>
<div>
<p></p>
&lt;f1a239245606221533d0dcba643f0f89.png&gt;
<p></p>
<br>
<p>I tried the following and was getting an 'unexpected SYMBOL_VAR' error:</p>
<p><br>
</p>
<p>sum{ t in T, s in S : I[t,s] * c[s] * (m[t,s] - sum{ r in R, k in K : w[r,t,k] * x[r,t,k] })}</p>
<p><br>
</p>
<p>In the function x[r,t,k] is a variable, everything else is a parameter.</p>
</div>
</div>
<b>This email is intended only for the use of the individual(s) to whom it is addressed. If you have received this communication in error, please immediately notify the sender and delete the original email.</b>
</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>
</div>
</div>
</div>
</div>
<b>This email is intended only for the use of the individual(s) to whom it is addressed. If you have received this communication in error, please immediately notify the sender and delete the original email.</b>
</body>
</html>