<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<blockquote type="cite" style="font-family: Helvetica; font-size: medium; ">Hello,<div><br></div><div>I'm a italian student and I'm coding a project for University Logistic course.</div><div><br></div><div>My problem is how code the attached constraint (constraint.jpg) of my logistic model in Flopc++ .</div><div>I have written this code.</div><div><br></div></blockquote><p style="font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp;&nbsp;MP_set Levels(n);</p>
<p style="font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp; MP_set Sheets(n);</p><p style="font-size: 11px; font-family: Menlo; "><br></p><p style="font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp;&nbsp;MP_binary_variable y(Sheets);</p>
<p style="font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp; MP_binary_variable x(Levels, Sheets);</p><p style="font-size: 11px; font-family: Menlo; "><br></p><p style="font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp;&nbsp;MP_index i, j, s;</p>
<p style="font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp; MP_subset&lt;2&gt; ls ( Levels, Sheets );</p>
<p style="font-size: 11px; font-family: Menlo; min-height: 13px; ">&nbsp;&nbsp; &nbsp;</p>
<p style="font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp; MP_constraint cTwo( Sheets );</p>
<p style="font-size: 11px; font-family: Menlo; ">&nbsp; &nbsp; cTwo( Sheets ) =</p>
<p style="font-size: 11px; font-family: Menlo; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; sum( ls(i, j).such_that( j &gt; i ), x(i, j)) + y( Sheets ) == 1;</p><div><br></div><blockquote type="cite" style="font-family: Helvetica; font-size: medium; "><div><br><BR>Thank you.<BR></div></blockquote><div><br><BR><br><BR></div>                                               </div></body>
</html>