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án Leonardo Rodriguez Florián <[email protected]>
> 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