Re: [Fwd: GUSEK exercise review support request]

Hartmut Henkel <[email protected]> Sun, 5 Jun 2022 13:42:57 +0200 (CEST)
Newsgroups gmane.comp.gnu.glpk
Message-ID <[email protected]>
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.

--8323329-2071312633-1654429377=:73621
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

On Sun, 5 Jun 2022, Andrew Makhorin wrote:
> -------- Forwarded Message --------
> Date: Fri, 3 Jun 2022 16:46:42 -0500
> Subject: GUSEK exercise review support request
> To: [email protected]
> From: Rom=C3=A1n Leonardo Rodriguez Flori=C3=A1n <rleonardorodriguez@gma=
il.com>
>       Kind regards Andrew,
>
>       I hope you are very well, I would like to ask for your support, if=
 you can help me by reviewing the GUSEK exercise that I am sending you att=
ached,
>       I think I am indexing wrong.
>
>       Reading model section from A_mixture_problem(ALGEBRAICO).mod...
>       A_mixture_problem(ALGEBRAIC).mod:23: syntax error in literal set
>       Context: i ] ; subject to REQ_MIN_SEM { i in seeds } : sum { i in
>       MathProg model processing error

This error goes away when you move *_rec_cant[i,j] to the left side and
put the entire sum{j in mezclas} term it into brackets:

subject to REQ_MIN_SEM  {i in semillas}:  sum{j in mezclas} (1*libras[i,j]=
 - min_req_cant[i,j]) >=3D 0 ;
# Restricci=C3=B3n del Porcentajes m=C3=A1ximos  Semillas en Mezcla NORMAL
subject to REQ_MAX_SEM  {i in semillas}:  sum{j in mezclas} (1*libras[i,j]=
 - max_req_cant[i,j]) <=3D 0 ;

There remains another error, something with data...

Best Regards, Hartmut

--8323329-2071312633-1654429377=:73621--