Hey, there,<br><br>I have no clue why this simple one cannot compile:<br><br>&nbsp;&nbsp;&nbsp;&nbsp; MP_set NN(2);<br>&nbsp;&nbsp;&nbsp;&nbsp; MP_set T(2);<br>&nbsp;&nbsp;&nbsp;&nbsp; MP_variable Z(NN, T);<br>&nbsp;&nbsp;&nbsp;&nbsp; Z.binary();<br><br>&nbsp;&nbsp;&nbsp; MP_constraint initZ(NN);<br>&nbsp;&nbsp;&nbsp; initZ(j) = Z(j, 0) == 0;<br clear="all">
<br>I tried all other possible format of the last sentence, and didn&#39;t get any luck.<br><br>I also see from the examples, a set name, T, for example, is used for indexing; sometimes, a MP_index variable is used for indexing; sometimes, Link(S,D), is used for indexing, not Link(s,d), where s and d are MP_index variable. I probably get used to AMPL syntax, where only index variable can be used to indexing things. Would anyone give me a rule about indexing syntax? Thanks.<br>
<br>-- <br>Best regards,<br>Michael Chen<br><br>