First time here? Check out the FAQ!

Ask Your Question
0

Solver for multiple variable

asked 9 years ago

marraco gravatar image

I have a function which depends of multiple parameters, and I need to find the parameters that minimize some error function.

Is non linear, but works well with conjugate gradient and central derivative methods on other software, which just do not have the necessary precision.

Is there something similar in PariGP?

The "solver" function seems to work only with one parameter.

Please, do not ask for more specific details about the function. This is a general question.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered 9 years ago

calc314 gravatar image

updated 9 years ago

You can use scipyfor this. See https://docs.scipy.org/doc/scipy/refe....

Here is an outline of some code.

from scipy import optimize

def err(params,F):
    ...
    return result

optimize.minimize(err,[initial values],args=(...))
Preview: (hide)
link

Comments

Thanks!

I was told that it is not possible in PariGP, so I gave up, and just today I found your answer.

Hope it works.

marraco gravatar imagemarraco ( 9 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 9 years ago

Seen: 769 times

Last updated: Apr 22 '15