dynatang
Petroleum
- Jan 28, 2005
- 5
I coded the clustering algorithem into a excel public function.
Then VBA solver is used to adjust two parameters to reach the target.
Because most time is used in inputing a same large data file, I am wondering is there any way in VBA to read in data once into memory and use by rest of the program, like key word "common" in Fortran?
The reason is each iteration of solver need the clustering for all nodes. And end of each sub or function. VB will unlaod all arrays and memory. And my data is stored in data file. So I need to read in data every time.
Then VBA solver is used to adjust two parameters to reach the target.
Because most time is used in inputing a same large data file, I am wondering is there any way in VBA to read in data once into memory and use by rest of the program, like key word "common" in Fortran?
The reason is each iteration of solver need the clustering for all nodes. And end of each sub or function. VB will unlaod all arrays and memory. And my data is stored in data file. So I need to read in data every time.