LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
ck ck is offline
external usenet poster
 
Posts: 52
Default Solver: Can't add constraints when they are above/below certain va

Hi, I am writing a VBA code in attempt to find some optimal values within
certain boundaries. To do this, I call Solver in VBA and add the constraints
using the following code:

SolverAdd CellRef:=Range("beta").Address, Relation:=1,
FormulaText:="UpperBound"
SolverAdd CellRef:=Range("beta").Address, Relation:=3,
FormulaText:="LowerBound"

where "LowerBound" and "UpperBound" refers to two cells containing the
boundaries.

The interesting thing is, when the LowerBound (or Upperbound) is below (or
above) certain value, then the constraint is not added into Solver.

Does anyone have any idea why this happens?
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solver Constraints twa14 Excel Discussion (Misc queries) 2 October 13th 07 01:10 PM
Constraints in Excel Solver Donna Excel Worksheet Functions 1 December 4th 05 10:27 PM
Solver Constraints Rick Excel Discussion (Misc queries) 15 March 9th 05 03:17 PM
Solver not Using Constraints when called from VB Mark[_47_] Excel Programming 0 July 8th 04 08:57 PM
Solver constraints not added Rob[_18_] Excel Programming 1 April 22nd 04 03:40 AM


All times are GMT +1. The time now is 09:20 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"