Page 1 of 1

compartments and total quantity

Posted: Wed Jun 13, 2018 1:47 pm
by puissancei
Hello,

I use 3 compartments for vehicles with quantities = 21, 21, 21
I want the total quantity of the vehicle not exceed 32.

How can I do this?

Re: compartments and total quantity

Posted: Wed Jun 13, 2018 1:50 pm
by Bernd Welter
Helllo Michel,

how about specifying the quantities of the vehicle as int[]={32,21,21,21} and an order specifies {absolute count,#p1,#p2,#p3}?

Best regards,
Bernd

Re: compartments and total quantity

Posted: Wed Jun 13, 2018 2:31 pm
by puissancei
it works fine.

Thank you