Re: bpp plus type constrain

Leonardo Corato <[email protected]> Wed, 11 Oct 2023 17:46:10 +0200
Newsgroups gmane.comp.gnu.glpk
Message-ID <CAPXOyi7p-FfDjKs68OUb5Nzkk_rEa6Ma4=9s4QPwViKWRA2Uaw@mail.gmail.com>
--000000000000a6e521060772b924
Content-Type: text/plain; charset="UTF-8"

Thank you  Michael, I already did, I realized immediately it was a typing
error.
I have to double thank you because you made me understand a thing in which
I was stuck.

About the upper bound, I realized the bins could't have been enough, so my
first code was a greedy solution: 1 bin per 1 item.
I think this could be largely improved, as you showed me, but I still have
to analyze to fully  understand your suggestion.

Do you think I should write the full bpp with types, code? Maybe it could
help someone.

Best regards


Il giorno lun 9 ott 2023 alle ore 18:26 Michael Hennebry <
[email protected]> ha scritto:

> On Fri, 6 Oct 2023, Michael Hennebry wrote:
>
> > YY{y in mouldTypes, b in 1..n, i in I: mo[i]==t} y[t, b] >= x[i, b] ;
>
> Oops. A y where a t was needed.  The corrected version:
> YY{t in mouldTypes, b in 1..n, i in I: mo[i]==t} y[t, b] >= x[i, b] ;
>
>
>

--000000000000a6e521060772b924
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Thank you=C2=A0 Michael, I already did, I realized im=
mediately it was a typing error.</div><div>I have to double thank=C2=A0you =
because you made me understand a thing in which I was stuck.</div><div><br>=
</div><div>About the upper bound, I realized the bins could&#39;t have been=
 enough, so my first code was a greedy solution: 1 bin per 1 item.</div><di=
v>I think this could be largely improved, as you showed me, but I still hav=
e to analyze to fully=C2=A0 understand your suggestion.</div><div><br></div=
><div>Do you think I should write the full bpp with types, code? Maybe it c=
ould help someone.=C2=A0</div><div><br></div><div>Best regards</div><div><b=
r></div><div><br></div><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D=
"gmail_attr">Il giorno lun 9 ott 2023 alle ore 18:26 Michael Hennebry &lt;<=
a href=3D"mailto:[email protected]">[email protected]=
.edu</a>&gt; ha scritto:<br></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding=
-left:1ex">On Fri, 6 Oct 2023, Michael Hennebry wrote:<br>
<br>
&gt; YY{y in mouldTypes, b in 1..n, i in I: mo[i]=3D=3Dt} y[t, b] &gt;=3D x=
[i, b] ;<br>
<br>
Oops. A y where a t was needed.=C2=A0 The corrected version:<br>
YY{t in mouldTypes, b in 1..n, i in I: mo[i]=3D=3Dt} y[t, b] &gt;=3D x[i, b=
] ;<br>
<br><br>
</blockquote></div></div>

--000000000000a6e521060772b924--