Re: [Fwd: GUSEK exercise review support request]

2022-06-05 Thread Hartmut Henkel
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: m...@gnu.org
> From: Román Leonardo Rodriguez Florián 
>   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 attached,
>   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

the version in the attachment seems to run. Apart from the sum braces,
indexing needed to be swapped, since in the data the "NORMAL",
"ESPECIAL" and "EXTRA" lines correspond to the 1st array index i. And a
few data entries were missing (I set them to 0, which may not be the
wanted).

Best Regards, Hartmut


Un_problema_de_mezclas(ALGEBRAICO).mod
Description: application/xml-dtd


Re: [Fwd: GUSEK exercise review support request]

2022-06-05 Thread Hartmut Henkel
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: m...@gnu.org
> From: Román Leonardo Rodriguez Florián 
>   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 attached,
>   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]) >= 0 ;
# Restricción del Porcentajes máximos  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]) <= 0 ;

There remains another error, something with data...

Best Regards, Hartmut


[Fwd: GUSEK exercise review support request]

2022-06-04 Thread Andrew Makhorin
 Forwarded Message 

Date: Fri, 3 Jun 2022 16:46:42 -0500
Subject: GUSEK exercise review support request
To: m...@gnu.org
From: Román Leonardo Rodriguez Florián 
> 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
> attached, 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
> 
> 
> I remain attentive to your concerns and comments,
> 
> LEONARDO RODRIGUEZ FLORIAN
> rleonardorodrig...@gmail.com
> Phone: 2656737
> Cell: 3505137069
> WhatsApp: 3054422705
> Skype: leonardorodriguez
> 
> 

Un_problema_de_mezclas(ALGEBRAICO).mod
Description: MPEG movie