Ask Your Question

Solver for multiple variable

asked 2015-04-21 14:06:22 -0600

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-04-22 12:38:24 -0600

calc314 gravatar image

updated 2015-04-22 13:43:08 -0600

You can use scipyfor this. See

Here is an outline of some code.

from scipy import optimize

def err(params,F):
    return result

optimize.minimize(err,[initial values],args=(...))
edit flag offensive delete link more



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 ( 2015-05-11 05:42:27 -0600 )edit

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


Asked: 2015-04-21 14:06:22 -0600

Seen: 68 times

Last updated: Apr 22 '15