Skip to main content

3 replies

terryhendicott
21-Topaz II

Hi

Like this

Capture4.jpg

Cheers

Terry

Translate
Werner_E
25-Diamond I

You have to provide guess values for the three variables you'd like to vary and when you call "maximize" you have to use the function name as first argument.

Werner_E_1-1665441416595.png

The results vary significantly if you change the guesses!

Werner_E_2-1665441483739.png

 

In your file your wrote "Define p, q as constraints".

If you want r dependent on specific values of p and q, you could do this as follows:

Werner_E_0-1665442286759.png

But if this is what you are looking for you could as well use the derivative and the numeric "root" function 😉

Werner_E_0-1665442811584.png

 

 

Translate
ttokoro
21-Topaz I

The answer depends on p and q values.

image.pngimage.png

Translate
t.t.