J
JohnI in Brisbane
Hi everyone,
I'm trying to understand how the add-in "Solver" works.
I have a puzzle which I found in NewScientist magazine (24 Jan 2004) page 45
as follows:
===================
That great artist Pussicato has painted a picture containing antelopes,
bears, cats and dogs.
For aesthetic reasons he kept to the following conditions:
Writing "a" for the number of antelopes in the picture, "b" for the number
of bears and so on:
a + 6d = 2b + c + 20 unless a + 6d = 2b + c + 17;
a + d = b + 2c + 2 unless a + d = b + 2c + 1;
3a + 5d = 3b + 5c + 11 unless 3a + 5d = 3b + 5c + 12;
3b + 5c = 2a + 2d + 1 unless 3b + 5c = 2a + 2d + 3;
the total number of animals is odd unless it is divisible by 5.
How many of each animal are there in the picture.
===================================
Okay, I realised that this is a set of simultaneous equations so I solved it
using the MMULT & MINVERSE functions on the 16 possible combinations.
I'd read about these functions some time ago on these newsgroups, & so
decided to try them for the first time on my own - and they worked great!
Then I tried Solver and could not get it to work.
Looked at the solution again, and realised iteration was easily possible -
so did that. Initially I thought that there may be an alternative solution,
but think now that there is only ONE solution with 4 variables & 4
simultaneous equations. (My maths IS getting a bit rusty.)
Okay, back to Solver. I'm thinking now that this is not a good problem for
"Solver" as it doesn't slowly move towards an Optimal Solution.
Am I correct in this assumption or am I doing something wrong?
Love to hear any suggestions.
regards,
JohnI
====================================================
PS if you love Math problems, take a look at
http://www.mkaz.com/math/google/
where the Marcus Kazmierczak describes how he solved the following problem:
{ the first 10-digit prime in consecutive digits of e }.com
I'm trying to understand how the add-in "Solver" works.
I have a puzzle which I found in NewScientist magazine (24 Jan 2004) page 45
as follows:
===================
That great artist Pussicato has painted a picture containing antelopes,
bears, cats and dogs.
For aesthetic reasons he kept to the following conditions:
Writing "a" for the number of antelopes in the picture, "b" for the number
of bears and so on:
a + 6d = 2b + c + 20 unless a + 6d = 2b + c + 17;
a + d = b + 2c + 2 unless a + d = b + 2c + 1;
3a + 5d = 3b + 5c + 11 unless 3a + 5d = 3b + 5c + 12;
3b + 5c = 2a + 2d + 1 unless 3b + 5c = 2a + 2d + 3;
the total number of animals is odd unless it is divisible by 5.
How many of each animal are there in the picture.
===================================
Okay, I realised that this is a set of simultaneous equations so I solved it
using the MMULT & MINVERSE functions on the 16 possible combinations.
I'd read about these functions some time ago on these newsgroups, & so
decided to try them for the first time on my own - and they worked great!
Then I tried Solver and could not get it to work.
Looked at the solution again, and realised iteration was easily possible -
so did that. Initially I thought that there may be an alternative solution,
but think now that there is only ONE solution with 4 variables & 4
simultaneous equations. (My maths IS getting a bit rusty.)
Okay, back to Solver. I'm thinking now that this is not a good problem for
"Solver" as it doesn't slowly move towards an Optimal Solution.
Am I correct in this assumption or am I doing something wrong?
Love to hear any suggestions.
regards,
JohnI
====================================================
PS if you love Math problems, take a look at
http://www.mkaz.com/math/google/
where the Marcus Kazmierczak describes how he solved the following problem:
{ the first 10-digit prime in consecutive digits of e }.com