Skip to main content
1-Visitor
January 20, 2010
Question

Iterating with Solver again

  • January 20, 2010
  • 4 replies
  • 5641 views
Greetings,

I have read over the previous topics involving iterations using the solver and none seem to shed any light.
I do know how to both define the solver block as a function and how to do a parametric analysis using a matrix of input which yields nested arrays. This is a start however I am specifically trying to use the results from the solver block to redefine the initial values.
I thought I could accomplish this with a loop that redefines the initial values but no luck.

Any advice? Is this even possible using MC 14?
best
hw

4 replies

1-Visitor
January 20, 2010
On 1/20/2010 10:12:04 PM, hw wrote:

" ... topics involving iterations using the solver and none seem to shed any light."

==> The collab search engine is dead and you may have found little.
==> Please, don't stick with "know how" just in case it is erroneous.

>however I am specifically trying to use the results from the solver block to redefine the initial values.
I thought I could accomplish this with a loop that redefines the initial values but no luck.

Any advice? Is this even possible using MC 14?
best
hw <<br>
____________________

"Save as" version 11, attach. So that 14 & 11 users can try.
Given/Find" in general is a linear programming module, it does seed itself unless some numerical subfunctions have to restart from the base, like the integrator. For the root( , , , ), the seeded root solver work fine like a bomb.

jmG
1-Visitor
January 20, 2010
Erratum: Given/Find does not seed itself.

Sorry ! jmG
hw_011-VisitorAuthor
1-Visitor
January 21, 2010
Thank you all for you initial comments. I have attached a MCD v11 file of the problem I am dealing will.



I have the solution block function running with both a MathCAD range variable and as a loop. Both provide the same solution for a parametric analysis. My goal however, as I tried to state before, is to redefine for each iteration of the parameters to also redefine the initial values.

Read comments at the end of the worksheet for specifics.



Also, I did not post the attempts to define the solver block function in terms of the initial values because I could not get it to work and perhaps may confuse what I am trying to accomplish.



I look forward to your comments.

hw
19-Tanzanite
January 21, 2010
Like this.

Richard
19-Tanzanite
January 21, 2010
Oops. There's a definition for a variable called T1a_to_T10a in there. It's just a useless leftover I forgot to delete.

Richard
19-Tanzanite
January 21, 2010
On 1/20/2010 10:12:04 PM, hw wrote:

>Any advice?

You can do what you want if you pass the guess values as parameters.

It might be possible to give a better answer if you post the worksheet.

>Is this even
>possible using MC 14?

Yes.

Richard


1-Visitor
January 21, 2010
You cannot loop at the worksheet level, only within a single program structure. So if the guess values for find are to vary, you must pass them as parameters to the function defined using find.
__________________
� � � � Tom Gutman
1-Visitor
January 22, 2010
On 1/21/2010 2:03:30 AM, Tom_Gutman wrote:
>You cannot loop at the
>worksheet level, only within a
>single program structure. So
>if the guess values for find
>are to vary, you must pass
>them as parameters to the
>function defined using find.
>__________________
>� � � � Tom Gutman
_____________________________

Yes, you can at the work sheet level outside of the programme structure in the example supplied. No guesses are needed.

jmG