Skip to main content
1-Visitor
June 18, 2016
Question

Problem with Minimization

  • June 18, 2016
  • 5 replies
  • 2443 views

Hello.. Apologies if this appears twice. I tried to post a question yesterday but it did not go through.

I am new to Mathcad so I am sure this is a trivial question for the experts.

I am building a program which manipulates a bunch of 1x400 vector arrays then integrates 2 of the arrays (Runge-Kutta). The final result of one of the integrations is then minimized with respect to frequency. No problem with minimizing a simple analytic function, but I must have a bad syntax here.

So I built a simple exercize below to make it easier to see my mistake.

Given

Where am I going wrong?

Thanks, Al

5 replies

25-Diamond I
June 20, 2016

Its always better to attach the mathcad sheet,istself, not just a picture.

The error occurs becaus temp has to be a function depending on variable f. p(f):=....

In your case temp is a simple variable and so cannot be minimized.

WE

24-Ruby IV
June 20, 2016

Use please min(P)=

19-Tanzanite
June 20, 2016

To minimize P with respect to f, P must be a function of f. That's easy enough to do, but then it's clear that there is no real minimum: as f increases, P decreases:

Maybe you just made the example too simple though, and your real function does have a minimum. In which case you can find it with minimize(P,f)

aclark-31-VisitorAuthor
1-Visitor
June 20, 2016

thanks everyone for your attempt to help. I am more confused, but am definitely trying (in my real program) to minimize P with respect to frequency. I realize that my practice example was pretty bad.

I will study your reponses, do some more homework, and return when I can ask a more intelligent question.

Best, Al

23-Emerald V
June 20, 2016

Are you really trying to find the minimum of P with respect to f? or just where the minimum is for a given f?

Stuart

23-Emerald I
June 20, 2016