Skip to main content
1-Visitor
April 3, 2014
Question

Solve Block Error!

  • April 3, 2014
  • 1 reply
  • 5098 views

Mathcad is returning an error saying that no solution was found for a variable and I can't understand why It's a variable that already has a set value.

I hope someone here can please see why this is happening! The start of the solve block is about 3/4 of the way down the sheet, starting under the heading 'Guess Values', ignore the other stuff.

I realise the variable names are long and annoying sorry.

1 reply

19-Tanzanite
April 3, 2014

A solve block never returns an error saying no solution was found for a specific variable, Actually, in MC12 and later a solve block never returns any error other that the useless "this variable is undefined", but if it did return a valid error it would be simply that it can't find a solution.

Anyway, the first thing you need to do is get rid of all the unnecessary equations in the solve block. For example, you have naphos=naphos6, and you do not solve for naphos. So above the solve block just assign naphos6:=naphos. You also have naphos7=naphos6, so you can get rid of that too. And you have naphos=nahos7, which, given the other two equations, is not an independent equation and should not be there. There are many more like these.

Once you have done that for all the variables that are equal, it would be a good idea to pick one variable name for each, and substitute that into all the remaining equations. Then check whether that leaves you with more redundant or non-independent equations that can be eliminated. The more you can simplify the solve block, the easier it will be to find the real problem. Right now, with all those variables with multiple names and non-independent equations in there, it would be almost impossible. it's not even possible to know if the number of equations you have actually matches the number of unknowns you are solving for.

1-Visitor
April 4, 2014

That actually fixed it! Thanks so much I initially meant that when i traced the error, it lead to a variable and said no solution was found for it.

Thanks again!

19-Tanzanite
April 4, 2014

That actually fixed it! Thanks so much

I didn't expect that! I just thought it would be the first step to finding the problem. I love it when things work out to be easier than expected