Non-linear solver

Dear All,

I need a multivariable non-linear equation solver in Ruby that approximate the optimal values for the variables that give the least differences. The input is the function and the variables and the output is the values of the fitted variables.

Is anyone familiar with any solution that must not involve installing external codes from different language implementations like GSL written in C or Scipy from Python etc.?

Thanks.
Andras

Quoting horv77 (horv77@protonmail.com):

   I need a multivariable non-linear equation solver in Ruby that approximate
   the optimal values for the variables that give the least differences. The
   input is the function and the variables and the output is the values of
   the fitted variables.
   Is anyone familiar with any solution that must not involve installing
   external codes from different language implementations like GSL written in
   C or Scipy from Python etc.?

Sciruby maintains a list of existing gems, maybe you can find what
you need there:

http://gems.sciruby.com/

I have to say, anyway, that an interpreted language (like Ruby, but
also Python) is not suitable for heavy maths. Even if a package has
ever been developed for Ruby that does what you ask, chances are its
calculating core has been written in a low-level language like C,
unless the authors have decided to pay a hefty price in performance.

Carlo

···

Subject: Non-linear solver
  Date: Thu 30 Sep 21 08:05:08AM +0000

--
  * Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe
  * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)

The performance is not always an issue in the current requirement, but the easiest way of implementation would help a lot and increase overall efficiency. Thank you for the SciRuby page. Though the available genetic optimizers seem to cumbersome, it seems pretty useful as I see many interesting relevant projects. I'm still looking for a more elegant implementation to fit parameters to functions though.

Thanks,
Andras

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

···

On Thursday, September 30th, 2021 at 10:18 AM, Carlo E. Prelz <fluido@fluido.as> wrote:

    Subject: Non-linear solver
    Date: Thu 30 Sep 21 08:05:08AM +0000

Quoting horv77 (horv77@protonmail.com):

> I need a multivariable non-linear equation solver in Ruby that approximate
>
> the optimal values for the variables that give the least differences. The
>
> input is the function and the variables and the output is the values of
>
> the fitted variables.
>
> Is anyone familiar with any solution that must not involve installing
>
> external codes from different language implementations like GSL written in
>
> C or Scipy from Python etc.?

Sciruby maintains a list of existing gems, maybe you can find what

you need there:

http://gems.sciruby.com/

I have to say, anyway, that an interpreted language (like Ruby, but

also Python) is not suitable for heavy maths. Even if a package has

ever been developed for Ruby that does what you ask, chances are its

calculating core has been written in a low-level language like C,

unless the authors have decided to pay a hefty price in performance.

Carlo

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

- Se la Strada e la sua Virtu' non fossero state messe da parte,

- K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe
    - di parlare tanto di amore e di rettitudine? (Chuang-Tzu)

Unsubscribe: mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe

http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk