<div dir="ltr"><div>Good morning,</div><div>We are working on a University of Pisa project.</div><div>First of all, we are dealing with CMPL model.</div><div>So, thanks in advance for your help!</div><div><br></div><div>Using:</div><div><a href="http://cmpl.th-wildau.de/cmpl-net.php">http://cmpl.th-wildau.de/cmpl-net.php</a><br></div><div><br></div><div>To try few very basic examples, like the following:</div><div><br></div><div>########################################</div><div><br></div><div>parameters:</div><div><br></div><div>Nodes := set(0, 1, 2, 3, 4, 5, 6, 7, 8, 9);</div><div>bal[Nodes] := (-397.57, 136.639, 0, 137.667, 123.265, 0, 0, 0, 0, 0);</div><div>v[Nodes] := (9999999999, 200000, 200000, 200000, 200000, 200000, 200000, 200000, 200000, 200000);</div><div>Arcs := set([1, 5], [3, 7], [4, 8], [2, 5], [6, 8], [9, 8], [0, 2], [0, 5], </div><div>            [5, 1], [7, 3], [8, 4], [5, 2], [8, 6], [8, 9], [2, 0], [5, 0]);</div><div>f[Arcs] := (42314, 22802.8, 58790.7, 11875.2, 93940, 58777.3, 114089, 121121, </div><div>            42314, 22802.8, 58790.7, 11875.2, 93940, 58777.3, 114089, 121121);</div><div>B := 100;</div><div>k := 4;</div><div><br></div><div>variables:</div><div><br></div><div>x[Nodes,Nodes] : binary;</div><div>o[Nodes]: binary;</div><div>b[Arcs] : real[0..B];</div><div><br></div><div>objectives:</div><div><br></div><div>costs: sum{[w,s] in Arcs: x[w,s]*f[w,s]} + sum{w in Nodes: o[w]*v[w]} -> min;</div><div><br></div><div>constraints:</div><div><br></div><div>csnt_1 {w in Nodes : sum{s in Nodes, s != w: x[w,s]} <= 2 + o[w]*(k-2); }<span class="" style="white-space:pre">   </span></div><div>csnt_2 {w in Nodes : sum{s in Arcs *> b[w,*] : b[w,s]} </div><div>                   - sum{s in Arcs *> b[*,w] : b[s,w]} = bal[w]; }</div><div>csnt_3 {[w,s] in Arcs: b[w,s] + b[s,w] <= B*x[w,s]; }</div><div><br></div><div>########################################<br></div><div><br></div><div>We receive this error regarding the flow conservation constraints (named as "csnt_2"):</div><div><br></div><div>error (compiler): file clp-5574.cmpl line 26: syntax error, unexpected SYMBOL_VAR<br></div><div><br></div><div>Best regards,</div><div>Paolo Grossi.</div>
</div>