Optimization.jl VS prima

Compare Optimization.jl vs prima and see what are their differences.

Optimization.jl

Mathematical Optimization in Julia. Local, global, gradient-based and derivative-free. Linear, Quadratic, Convex, Mixed-Integer, and Nonlinear Optimization in one simple, fast, and differentiable interface. (by SciML)

prima

PRIMA is a package for solving general nonlinear optimization problems without using derivatives. It provides the reference implementation for Powell's derivative-free optimization methods, i.e., COBYLA, UOBYQA, NEWUOA, BOBYQA, and LINCOA. PRIMA means Reference Implementation for Powell's methods with Modernization and Amelioration, P for Powell. (by libprima)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
Optimization.jl prima
3 13
663 275
2.1% 4.0%
9.7 9.9
6 days ago 2 days ago
Julia Fortran
MIT License BSD 3-clause "New" or "Revised" License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Optimization.jl

Posts with mentions or reviews of Optimization.jl. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-18.
  • SciPy: Interested in adopting PRIMA, but little appetite for more Fortran code
    8 projects | news.ycombinator.com | 18 May 2023
    Interesting response. I develop the Julia SciML organization https://sciml.ai/ and we'd be more than happy to work with you to get wrappers for PRIMA into Optimization.jl's general interface (https://docs.sciml.ai/Optimization/stable/). Please get in touch and we can figure out how to set this all up. I personally would be curious to try this out and do some benchmarks against nlopt methods.
  • Help me to choose an optimization framework for my problem
    2 projects | /r/Julia | 11 Mar 2023
    There are also Optimization and Nonconvex , which seem like umbrella packages and I am not sure what methods to use inside these packages. Any help on these?
  • The Julia language has a number of correctness flaws
    19 projects | news.ycombinator.com | 16 May 2022
    > but would you say most packages follow or enforce SemVer?

    The package ecosystem pretty much requires SemVer. If you just say `PackageX = "1"` inside of a Project.toml [compat], then it will assume SemVer, i.e. any version 1.x is non-breaking an thus allowed, but not version 2. Some (but very few) packages do `PackageX = ">=1"`, so you could say Julia doesn't force SemVar (because a package can say that it explicitly believes it's compatible with all future versions), but of course that's nonsense and there will always be some bad actors around. So then:

    > Would enforcing a stricter dependency graph fix some of the foot guns of using packages or would that limit composability of packages too much?

    That's not the issue. As above, the dependency graphs are very strict. The issue is always at the periphery (for any package ecosystem really). In Julia, one thing that can amplify it is the fact that Requires.jl, the hacky conditional dependency system that is very not recommended for many reasons, cannot specify version requirements on conditional dependencies. I find this to be the root cause of most issues in the "flow" of the package development ecosystem. Most packages are okay, but then oh, I don't want to depend on CUDA for this feature, so a little bit of Requires.jl here, and oh let me do a small hack for OffSetArrays. And now these little hacky features on the edge are both less tested and not well versioned.

    Thankfully there's a better way to do it by using multi-package repositories with subpackages. For example, https://github.com/SciML/GalacticOptim.jl is a global interface for lots of different optimization libraries, and you can see all of the different subpackages here https://github.com/SciML/GalacticOptim.jl/tree/master/lib. This lets there be a GalacticOptim and then a GalacticBBO package, each with versioning, but with tests being different while allowing easy co-development of the parts. Very few packages in the Julia ecosystem actually use this (I only know of one other package in Julia making use of this) because the tooling only recently was able to support it, but this is how a lot of packages should be going.

    The upside too is that Requires.jl optional dependency handling is by far and away the main source of loading time issues in Julia (because it blocks precompilation in many ways). So it's really killing two birds with one stone: decreasing package load times by about 99% (that's not even a joke, it's the huge majority of the time for most packages which are not StaticArrays.jl) while making version dependencies stricter. And now you know what I'm doing this week and what the next blog post will be on haha.

prima

Posts with mentions or reviews of prima. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-03.
  • Prima has got a Python interface
    3 projects | news.ycombinator.com | 3 May 2024
    The developer of PRIMA here.

    If you use method "cobyla" from scipy.optimize.minimize, then PRIMA already performs far better (in terms of the number of function evaluations). See the comparison at https://github.com/libprima/prima#improvements .

    The bugs are indeed only a secondary reason: they can only be triggered under special situations. They may not affect your usage at all (when it does affect you, the consequence is catastrophophic).

  • Nagfor supports half-precision floating-point numbers
    1 project | news.ycombinator.com | 6 Mar 2024
    1. nagfor Release 7.1(Hanzomon) Build 7149 released on March 5, 2024, fixed all the bugs spotted, but introduced an ICE when compiling PRIMA ( http://www.libprima.net ). The ICE has nothing to do with half-precision real, because it occurs when PRIMA is configured to use single or double precision. It can be reproduced by

    ```

    git clone https://github.com/libprima/prima.git && cd prima && git checkout ec42cb0 && cd fortran/examples/lincoa && make ntest

    ```

    2. nagfor 7.2 released on 6 March, 2024 included neither the ICE nor the fixes for the bugs.

  • PRIMA: Solving general nonlinear optimization problems without derivatives
    1 project | news.ycombinator.com | 28 Feb 2024
  • What are you rewriting in rust?
    36 projects | /r/rust | 10 Jul 2023
    My goal is to rewrite this library for derivative-free optimization: https://github.com/libprima/prima
  • SciPy: Interested in adopting PRIMA, but little appetite for more Fortran code
    8 projects | news.ycombinator.com | 18 May 2023
    A native port is indeed planned. However, since we are talking about a project of about 10K lines of code, such a port will not be delivered very soon.

    In fact, native implementations of PRIMA in Python, MATLAB, C++, Julia, and R will all be done in the future. See https://github.com/libprima/prima#other-languages . But it takes time. PRIMA has been a one-man project since it started three yearss ago. Community help is greatly needed.

    Thanks.

  • Optimization Without Using Derivatives: the PRIMA Package, its Fortran Implementation, and Its Inclusion in SciPy - Announcements
    1 project | /r/programming | 17 May 2023
    GitHub repo of the project: https://github.com/libprima/prima
  • Optimization Without Derivatives: Prima Fortran Version and Inclusion in SciPy
    8 projects | news.ycombinator.com | 16 May 2023
    It sounds like this was a difficult task. The motivation to fulfill Prof. Powell's request and help the community of derivative-free optimization users must have been strong. Congratulations on your achievement!

    From the GitHub README:

    > In the past years, while working on PRIMA, I have spotted a dozen of bugs in reputable Fortran compilers and two bugs in MATLAB. Each of them represents days of bitter debugging, which finally led to the conclusion that it was not a problem in my code but a flaw in the Fortran compilers or in MATLAB. From a very unusual angle, this reflects how intensive the coding has been.

    > The bitterness behind this "fun" fact is exactly why I work on PRIMA: I hope that all the frustrations that I have experienced will not happen to any user of Powell's methods anymore. I hope I am the last one in the world to decode a maze of 244 GOTOs in 7939 lines of Fortran 77 code — I have been doing this for three years and I do not want anyone else to do it again.

    https://github.com/libprima/prima#a-fun-fact

  • Optimization Without Using Derivatives
    2 projects | news.ycombinator.com | 21 Apr 2023

What are some alternatives?

When comparing Optimization.jl and prima you can also consider the following projects:

StatsBase.jl - Basic statistics for Julia

solid-docs - Cumulative documentation for SolidJS and related packages.

Petalisp - Elegant High Performance Computing

stdlib - Fortran Standard Library

OffsetArrays.jl - Fortran-like arrays with arbitrary, zero or negative starting indices.

pybobyqa - Python-based Derivative-Free Optimization with Bound Constraints

avm - Efficient and expressive arrayed vector math library with multi-threading and CUDA support in Common Lisp.

Optimization-Codes-by-ChatGPT - numerical optimization subroutines in Fortran generated by ChatGPT-4

Distributions.jl - A Julia package for probability distributions and associated functions.

inox2d - Native Rust reimplementation of Inochi2D

StaticLint.jl - Static Code Analysis for Julia

OfficerBreaker - OOXML password remover