OpenNTF.org - Goal Seek / Regula Falsi metho
    Advanced
   OpenNTF Code Bin
Edit Document Code By Date > Code Document
About This Code
Brief Description:
Goal Seek / Regula Falsi method 
Rating:
Not Rated Yet 
Contributor:
Matt Quelch 
Category:
Lotusscript 
Type:
Numeric functions 
Notes Version:
R6.x 
Last Modified:
01 Oct 2007 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
I needed to implement the equivalent of an Excel GoalSeek is Lotus. Okay so imagine you have two forms, a "Machine" and an "Item" - an Item being linked to a Machine using the Machine's DocUNID. The Items each have a calculated value and the Machine has a balance which is calculated from the sum of the Item's values minus the cost of the machine, we want to change a each Item's value until it causes the Machine's balance to equal zero (with some limits). So here is the LotusScript agent which does the job - hope someone else may one day stumble upon this and find it handy (Disclaimer: I'm an admin with a little programming experience, so any problems with the code, please comment :) )


edit: Attached code.

Usage / Example
Code Attachments
GoalSeek.LS (4 Kbytes)
 Comments

No documents found

 Add your comment!