A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Solver query



 
 
Thread Tools Display Modes
  #1  
Old June 14th, 2004, 12:24 PM
Damien
external usenet poster
 
Posts: n/a
Default Solver query

I'm trying to use the Solver to solve a problem for me,
but even though I've set binary constraints on the
changing cells (ie I want them to be 1 or 0), the solver
keeps making them into decimals, and producing solutions.

How can I prevent this ?

Basically, I've got a list of 30 amounts, of which I know
a combination of 28 or 29 adds up to the target amount.
I'm using a 1 or 0 in the changing cells as a multiplier,
to try and work out which combination is correct.

eg if the target is 100, the solution would be as follows:
(imagine this set up in Excel)

multiplier amount result
0 100 0
1 100 100

Total 100


My real problem is a bit more complicated, and even with
binary constraints (and I've tried integer constraints),
the Solver will invariable set the multiplier to a decimal
and show it as the solution

eg
multiplier amount result
0.5 100 50
0.5 100 50

Total 100

Thanks
  #2  
Old June 15th, 2004, 06:49 PM
Tushar Mehta
external usenet poster
 
Posts: n/a
Default Solver query

Solver, as with other programs in its class, works with decimal values
and towards the end of its processing ensures that the decimal values
are (close) to the specified integer/binary constraints. So, if Solver
fails to find a solution and you accept its current values, you will
get all kinds of decimal numbers.

If your problem is linear (from your description, it would appear to
be), in the Solver dialog box click the Options button. In the
resulting Solver Options dialog box, check the 'Assume Linear Model'
checkbox.

--
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 use the Solver to solve a problem for me,
but even though I've set binary constraints on the
changing cells (ie I want them to be 1 or 0), the solver
keeps making them into decimals, and producing solutions.

How can I prevent this ?

Basically, I've got a list of 30 amounts, of which I know
a combination of 28 or 29 adds up to the target amount.
I'm using a 1 or 0 in the changing cells as a multiplier,
to try and work out which combination is correct.

eg if the target is 100, the solution would be as follows:
(imagine this set up in Excel)

multiplier amount result
0 100 0
1 100 100

Total 100


My real problem is a bit more complicated, and even with
binary constraints (and I've tried integer constraints),
the Solver will invariable set the multiplier to a decimal
and show it as the solution

eg
multiplier amount result
0.5 100 50
0.5 100 50

Total 100

Thanks

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:06 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.