Error - Length of d[cost]

Hi @cjaitej , welcome to the DLS community!

I assume you have a question on the error message, It actually points to the type and shape of your parameters. Please check whether they have the correct type and shape,

regards Stephanus

Thank you! It worked without any error.

1 Like

Hi! I am running into the same error right now, and I am slightly confused.

The length of costs is 20 as every 100 iterations, a cost value gets appended and as a result after 2000 iterations there are 20 values in the costs list. However, it seems like the test assertation is expecting costs list length of 1.

How do I overcome this problem? Thank you in advance for your help!! :slight_smile:

Oh, I managed to overcome the bug! Thank you!!

2 Likes