Skip to main content
1-Visitor
Dec 5, 2014 11:19 AM UTC
Solved

Updating guess value in looped solve block

Hi all,

I have a solve block function inside a program. The program iterates through an array, finding a solution for each element in the array. The problem is that the initial guess value does not work for all elements in the array. I would like to be able to use the previously calculated solution as the new guess value for the solve block. Is this possible?

I can't post the whole sheet, but I've attached an extract which hopefully shows what I'm trying to do.

Thanks

Werner_E
Werner_EAnswer
25-Diamond I
Dec 5, 2014 12:26 PM UTC

So why not make the guess value an additional argument of your solve block function?

1.png

3 replies

Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
Dec 5, 2014 12:26 PM UTC

So why not make the guess value an additional argument of your solve block function?

1.png

Translate
19-Tanzanite
Dec 5, 2014 12:32 PM UTC

Just pass it to the function as another parameter.

Translate
1-Visitor
Dec 5, 2014 12:47 PM UTC

Thanks gents! A rather simple soltution...

Translate