cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Need help with a solver block

kriley
1-Newbie

Need help with a solver block

Hello,

I need some help with a solver block. I have attached the .mcdx fill. I'm trying to solve for 3 variable with 4 equations (constraints) which are a function of theta.

I feel I'm going about this wrong.

Any help is greatly appreciated,

Ken

1 ACCEPTED SOLUTION

Accepted Solutions
Werner_E
24-Ruby V
(To:kriley)

I, too, can't read your 3.1 file, but fortunately Luc has posted a picture.

As Luc already pointed out you can omit one of your last three equations which is fine, as so you have just an ordinary system of three equations in three variables.

Using a solve block you have to provide values for all variables other than the variables you are solving for.

Obviously those values are missing in your sheet, so lets use the symbolics.

Unfortunately in Prime we are not allowed to evaluate a solve block symbolically, so we have to use  the symbolic solve to do the job.

Here its done in Mathcad 15, but it should work the same in Prime:

Werner

View solution in original post

7 REPLIES 7
RichardJ
19-Tanzanite
(To:kriley)

I can't read your file because it's in Prime 3.1 format, but in general there is no solution to a system of 4 equations with only 3 unknowns (it's an over determined system). You either need to get rid of one equation, or find one more unknown.

LucMeekes
23-Emerald III
(To:kriley)

I'm afraid 3 of the 4 equations aren't independent:

Your first equation may be OK, But the other three say:

Mc*Xc=Me*Xe, Mc*Xc=Mr*Xr, Me*Xe=Mr*Xr

The second and the third already imply the fourth. Omit that one.

What about those functions V(theta)? How should the solver know/find out about them. And who is Vr?

Then in the solver, your putting yet another equation (=), rather than an assigment or just an evaluation (:=)

And with M(theta) multiplied with the vector: Note that you cannot assign someting to a multiplication.

Normally you would write in the solver something like:

Success!
Luc.

And what about minerr not find function?

Werner_E
24-Ruby V
(To:kriley)

I, too, can't read your 3.1 file, but fortunately Luc has posted a picture.

As Luc already pointed out you can omit one of your last three equations which is fine, as so you have just an ordinary system of three equations in three variables.

Using a solve block you have to provide values for all variables other than the variables you are solving for.

Obviously those values are missing in your sheet, so lets use the symbolics.

Unfortunately in Prime we are not allowed to evaluate a solve block symbolically, so we have to use  the symbolic solve to do the job.

Here its done in Mathcad 15, but it should work the same in Prime:

Werner

kriley
1-Newbie
(To:kriley)

Thanks everyone for the help!

I've gotten the following to work if I put in a value for theta in Vc( ) and Ve( ). Vc and Ve are functions of theta defined earlier in the worksheet.

Can I use a function such as Vc( ) in the solver block?

Ken

kriley
1-Newbie
(To:kriley)

I understand what Werner is saying. You do have to provide values for all the variables in the solver block. Let me try the symbolic approach as Werner has suggested

Thank you Werner,

Ken

kriley
1-Newbie
(To:kriley)

Think everyone for the help. I was able to work the problem using symolics.

Ken

Top Tags