View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tushar Mehta Tushar Mehta is offline
external usenet poster
 
Posts: 1,071
Default Determining if a Solution was Found Using VB & Solver

See Dana DeLouis' post at
http://groups.google.com/group/micro...gramming/tree/
browse_frm/thread/e786b6a2cbf8026c/da6153c471a7f6e4

which also points to
http://www.solver.com/suppstdmsgresult.htm

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article ,
says...
I'm trying to find a way to determine within a VB function if solver has
found a valid solution.

I've written a routine that runs the solver mutiple times (dozens ...
sometimes hundreds) for a problem starting from different input values for
the adjustable cells. I then record the adjustable cell values for results
that meet certain criteria.

The problem I have is that I can't find a way to get visibility into whether
Solver found a solution on a specific iteration (iteration here means a
complete execution of solver ofr a set of starting values). Once solver is
complete, there is apparently no way to tell whether it succeeded in meeting
all of the restraints. I'd like to be able to tell my routine not to save
values for iterations in which a solution was not found.

Any help would be appreciated.