How to figure the initial guess to optimize

  • Thread starter Thread starter PaulaS
  • Start date Start date
  • Tags Tags
    Figure Initial
Click For Summary

Discussion Overview

The discussion revolves around determining an initial guess for optimizing a system of nonlinear equations involving seven parameters: x, y, z, t, HF, M1F, and M2F. Participants explore how initial conditions and constraints can inform the selection of this guess for use with scipy.optimize in Python.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning

Main Points Raised

  • One participant outlines a problem involving seven parameters and the need to solve a system of four nonlinear equations after user input of three parameters.
  • Initial conditions are provided, including inequalities that must be satisfied, such as x > 0, y > 0, z < 0, HF > 0, M1F > 0, M2F > 0, and M2F > M1F.
  • Another participant suggests testing trivial initial guesses, such as ±1, and questions the meaning of "d" in the inequality "HF > M1F + d."
  • There is a suggestion that the inequality "-x + y + 2z < 0" follows from "-x + 2y + 2z < 0," which could imply a relationship between M2F and M1F.
  • A later reply introduces an additional constraint that t > 0 and proposes that if t is not provided, a guess of +1.0 might be reasonable.

Areas of Agreement / Disagreement

Participants express uncertainty regarding the initial guess and the interpretation of the variable "d." There is no consensus on the best approach to determine the initial guess for the optimization problem.

Contextual Notes

Participants note potential dependencies on the definitions of the parameters and the implications of the inequalities, but these aspects remain unresolved.

PaulaS
Messages
18
Reaction score
0
I have the following problem to code using python:

I have 7 parameters: x,y,z,t, HF, M1F, and M2F. The user should input any of these 3 and the program should calculate the rest.

The relations that I have are:

HF = -xyt

M1F = -2xzt + 4yzt - xyt + 4tz^2

M2F = 2yzt - xyt

1 = -2xt + 2yt + 4zt

Attempt to solve the problem:

I have 7 parameters and the user should input 3 => I will be left with 4 parameters. So it's all about solving a system of 4 nonlinear equations with 4 unknowns.

I read online that scipy.optimize could be used to solve a system of nonlinear equations. But I need an initial guess.

Going back to the physics of the problem I have the following initial conditions:

x > 0

y > 0

z < 0

HF > 0

M1F > 0

M2F > 0

M2F > M1F (solving this inequality from the above equations I get: -x + y + 2z < 0)

HF > M1F + d (solving this inequality from the above equations I get: -x + 2y + 2z < 0)

How can these initial conditions help me get the initial guess so that I can solve my problem using scipy.optimize?
 
Technology news on Phys.org
Did you test some trivial initial guesses, like +-1?

What is d in "HF > M1F + d"?

As y>0, "-x + y + 2z < 0" follows from "-x + 2y + 2z < 0", so (assuming those inequalities are correct) "M2F > M1F" follows from the last inequality.
 
I also haven't figured out the "d". I think it's a typo.
Another constraint: t > 0
If t is not provided, +1.0 would be as good a guess as any.
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
35K
  • · Replies 7 ·
Replies
7
Views
5K
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
Replies
7
Views
2K
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
1K