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

Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Minimise value in solve block

JB_10745469
4-Participant

Minimise value in solve block

Hi,

 

I am looking to find a minimum value of 'ey' within a solve block based on a set of equations, which otherwise give a circular reference.

So far I cannot manage for the solve block to give me an answer and I was looking for some help.

 

Screenshot of problem:

JB_10745469_0-1690379907714.png

Using PTC Mathcad Prime 8.0.0.0

 

Thanks,

JB

ACCEPTED SOLUTION

Accepted Solutions

In Prime 7 I get an error message, that it can't find a solution.

A little more tweaking:

LucMeekes_1-1690402563066.png

gives:

LucMeekes_0-1690402670824.png

Success!
Luc

View solution in original post

8 REPLIES 8

Hi,

 

Only have version 9.

Take all the functions outside the solve block

Define a function for ey the function to minimise.

Set ey as the thing to minimise

Capture.JPG

 

Capture2.JPG

 

In Prime 7 I get an error message, that it can't find a solution.

A little more tweaking:

LucMeekes_1-1690402563066.png

gives:

LucMeekes_0-1690402670824.png

Success!
Luc

JB_10745469
4-Participant
(To:LucMeekes)

Thanks for the solution @LucMeekes and thanks to the other replies.

 

I did make it a little confusing when I set the solver to solve for 'XYZ' - this was just a random term to solve for a minimum value of 'ey' but did not fully realise I had 'X', 'Y' and 'Z' already within the equations!

 

Also, as 'X' was a fixed value, I managed to remove it from within the brackets of the beta equations.

Werner_E
25-Diamond I
(To:JB_10745469)

It looks like you will have to supply additional information!

 

Which quantity should be as small as possible? Is it e.y as Terry had supposed or is it beta.ey as Luc had?

Also necessary: Which of the variables you defined may be varied to achieve this goal? Terry varied X,Y and Z.end while Luc varied e.y.

 

Generally you have to know that the quantity you would like to minimize must be a function depending on the quantities you are willing to vary to achieve this goal. You can't minimize a variable.

terryhendicott_0-1690460215778.png

 


@terryhendicott wrote:

terryhendicott_0-1690460215778.png

 


yes, I saw this. But he defined a guess value for e.y which normally means that e.y is the value to vary and even if he saw e.y as function to minimize its absolutely not clear to me which variables should be varied to achieve this goal.

Anyway, a timely feedback from the questioner on the two suggestions already given and further clarification would be quite appropriate and necessary in my opinion.

Given the relation between the two:

LucMeekes_0-1690477465583.png

It shouldn't matter much which one is minimised, Given that all other symbols in the relation are constants, the minimum of one results in the minimum of the other.

 

Success!
Luc

Announcements

Top Tags