Hi,
I have been running Solver with this kind of code:
SolverOk SetCell:="$BM$3", MaxMinVal:=2, ValueOf:=0, ByChange:="$R$3:$R$9", _
Engine:=1, EngineDesc:="GRG Nonlinear"
SolverSolve UserFinish:=True
Before I run this VBA, I will make the first Solver run manually, so that the conditions and constraints are properly set. This works fine, with the only problem being that it is very slow when I loop the VBA over, say, a few thousand times. This is understandable, because each manual run of the Solver usually takes about 1-2 seconds anyway.
The question that I would like to ask is, if I call the Solver .dll directly (which I suppose will bypass many GUI steps), will it make the program much faster? If it does, can someone please show me how to edit the above code to call the .dll? I am not familiar with using .dll files at all.
Thanks!
Bookmarks