Update Guess Value for Solve Block used by Program
Jan 21, 2010
03:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 21, 2010
03:00 AM
Update Guess Value for Solve Block used by Program
I do not recall how to update the guess values used by a Given-Find (LM) solve block routine called by a program. I have attached a file (MC14.020) which shows the pertinent section. I cannot make the program operate since it calls a third party dll through excel to resolve some state values for gaseous species. Hopefully, you will have enough to look at to make sense of my question. Any insight will be greatly appreciated.
Bob
Bob
Labels:
- Labels:
-
Physics
1 REPLY 1
Jan 21, 2010
03:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 21, 2010
03:00 AM
You should be passing the guess values to the function as arguments, and solving for the next generation of guess values. Are you sure you have it the right way round? It looks to me like pVsl1.new and pVsl2.new are the guess values, and you should therefore be solving for pVsl1.curr and pVsl2.curr.
I just posted an example of this in another thread earlier today (the next one down in this forum!):
http://collab.mathsoft.com/~Mathcad2000/read?132571,63
Richard
I just posted an example of this in another thread earlier today (the next one down in this forum!):
http://collab.mathsoft.com/~Mathcad2000/read?132571,63
Richard
