Skip to main content
21-Topaz II
October 22, 2026
Question

Problem with Minimize

Hello everyone! I need to minimize an objective function, but the algorithm fails to converge. I have tried changing the initial conditions several times, yet nothing changes. Given the extensive experience of the members of this community, I would be very grateful if someone could help me solve this problem. Thanks again. Best regards.

5 replies

19-Tanzanite
October 22, 2026

You haven’t defined U0, n, or b.

Look carefully at your definition of Av-target.

There are other problems, but fix those first.

Translate
Werner_E
25-Diamond I
October 22, 2026

Your function P.diss is a simple linear function which depends on I.tot only.

The arguments G.1m G.2, G.C and G.E you used when you defined the function are obsolete as they are not used in any way in the definition. So you also can’t minimize that function with respect to these variables.

P.S.: I don't visit this forum as often anymore, and I just noticed that you can't even paste images directly anymore. I get an error message saying something went wrong and that I should check my link(???) and try again.
Is this a known issue? Has the situation here on the forum actually gotten even worse, or is this just a temporary glitch?

 

Translate
-MFra-21-Topaz IIAuthor
21-Topaz II
October 22, 2026

Here is the revised and corrected version, but it still doesn't work!

 

Translate
21-Topaz II
October 23, 2026

Hi Werner,

You are not the only one who cannot paste an image.  You used to be able to so it must just be a glitch.

Translate
Werner_E
25-Diamond I
October 23, 2026

Thanks for trying. I just tried and it still does not work.

Hope the admins are aware of the problem.
Is there a generic username for admins like @admin?
Of course, we can try to get the attention of ​@Jaime_Lee , ​@olivierlp  or ​@AndrewK  but a generic name would definitely make sense IMHO (the same goes for the mods).

Translate