C++ Optimization

Open-source C++ projects categorized as Optimization Edit details

Top 17 C++ Optimization Projects

  • meshoptimizer

    Mesh optimization library that makes meshes smaller and faster to render

    Project mention: Algoritm to simplify geometric data similar to texture bitmapping | reddit.com/r/GraphicsProgramming | 2021-12-14

    I've used the "Simplification" operation of meshoptimizer to simplify 3D model geometry: https://github.com/zeux/meshoptimizer

  • MTuner

    MTuner is a C/C++ memory profiler and memory leak finder for Windows, PlayStation 4 and 3, Android and other platforms

    Project mention: What do you want out of a Rust profiler? | reddit.com/r/rust | 2022-02-09

    I would really love to have some memory profiler that is capable of dealing of huge amount of data and allocations, robust and stable with stack traces on allocations. Similar to https://github.com/milostosic/MTuner

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • palanteer

    Visual Python and C++ nanosecond profiler, logger, tests enabler

    Project mention: Palanteer v0.5 is out! Live visual Python profiling with support of multiprocess | reddit.com/r/Python | 2021-11-23

    GitHub: https://github.com/dfeneyrou/palanteer

  • ALS-Community

    Replicated and optimized community version of Advanced Locomotion System V4 for Unreal Engine 5.0 with additional features & bug fixes

    Project mention: Does anyone have this issue with ALS 4.0 and a Physical object? | reddit.com/r/unrealengine | 2021-12-13
  • osqp

    The Operator Splitting QP Solver

    Project mention: Ask HN: Do you use an optimization solver? Which one? Why? Do you like it? | news.ycombinator.com | 2022-04-20

    I have been using OSQP [1] quite a bit in a project where I needed to solve many quadratic programs (QPs). When I started the project, OSQP didn't exist yet; I ended up using both cvxopt and MOSEK; both were frustratingly slow.

    After I picked up the project again a year later, I stumbled across the then new OSQP. OSQP blew both cvxopt and MOSEK out of the water (up to 10 times faster) in terms of speed and quality of the solutions. Plus the C interface was quite easy to use and super easy (as far as numerics C code goes) to integrate into my larger project.

    [1] https://osqp.org/

  • d912pxy

    DirectX9 to DirectX12 API proxy for Guild Wars 2

    Project mention: Help with PC upgrades/improving FPS | reddit.com/r/Guildwars2 | 2022-06-24

    You could try using the dx12 addon to maybe squeeze out a bit more fps then dx11 gives. Otherwise gw2 is really a lost cause when it comes to trying to get a decent frame rate.

  • casadi

    CasADi is a symbolic framework for numeric optimization implementing automatic differentiation in forward and reverse modes on sparse matrix-valued computational graphs. It supports self-contained C-code generation and interfaces state-of-the-art codes such as SUNDIALS, IPOPT etc. It can be used from C++, Python or Matlab/Octave.

    Project mention: Are there any optimization libraries/packages that use automatic differentiation? | reddit.com/r/optimization | 2021-11-04

    JuMP.jl (Julia) or casADi (Python) are good choices.

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • symforce

    Fast symbolic computation, code generation, and nonlinear optimization for robotics

    Project mention: Skydio Researchers Open-Source ‘SymForce’: A Fast Symbolic Computation And Code Generation Library For Robotics Applications Like Computer Vision, etc. | reddit.com/r/robotics | 2022-06-14

    Continue reading | Checkout the paper and github

  • vroom

    Vehicle Routing Open-source Optimization Machine (by VROOM-Project)

    Project mention: Show HN: Optimule, a free vehicle routing platform built with Open Route Service | news.ycombinator.com | 2021-09-19

    I see, thanks!

    Open Route Service [1] seems to use Vroom [2] under the hood. It seems to be based on local search with some "Solomon I1" (?) heuristic. So good heuristic routes (obtained quickly), not optimal ones.

    [1] https://openrouteservice.org/

    [2] https://github.com/VROOM-Project/vroom

  • spot_mini_mini

    Dynamics and Domain Randomized Gait Modulation with Bezier Curves for Sim-to-Real Legged Locomotion.

  • ifopt

    An Eigen-based, light-weight C++ Interface to Nonlinear Programming Solvers (Ipopt, Snopt)

    Project mention: [Q] Library for NLP and Trajectory Optimization | reddit.com/r/u_RLbeginner | 2022-05-25

    Ifopt - seems incredible but the C++ level is unfortunately above my current skill. https://github.com/ethz-adrl/ifopt

  • gta5_fsr

    This mod replaces original Grand Theft Auto V upscaler with FidelityFx Super Resolution 1.0

    Project mention: FSR 2.0 works as replacement for DLSS! | reddit.com/r/linux_gaming | 2022-06-26

    Is fsr 2.0 available for GTAV ?? Currently using this one.

  • OrangeC

    OrangeC Compiler And Tool Chain

    Project mention: Result of next C23 meeting: typeof is standard, call_once is mandated, char8_t is unsigned, unreachable(), = {}, K&R declarations are gone, int main() is now (void), @, $, ` are now source character, _Noreturn, true/false are keywords | reddit.com/r/C_Programming | 2022-02-19

    If you know how a C++ lambda works under the hood, you'd understand that C++ lambdas create classes in order to ingest the capture targets then work on it, the code in the Orange C compiler for example does the following:

  • siconos

    Simulation framework for nonsmooth dynamical systems

    Project mention: Python for everyone : Mastering Python The Right Way | dev.to | 2022-03-07


  • biteopt

    Derivative-Free Optimization Method for Global Optimization (C++)

  • SpeciaLUT

    Runtime choosing of template specializations using compile-time lookup-tables. Compile all states of a template function, but execute the optimal one at runtime.

    Project mention: Runtime-constant propagation and branching optimization strategy | reddit.com/r/Compilers | 2022-02-06

    I have implemented this as a C++ library, where you extract const states as template parameters, and the library compiles all specializations and allows you to choose the optimal one at runtime.

  • LazyMath

    Complex Conjugate Gradient linear solver and Levenberg-Marquardt minimizer with and without constraints in C++

    Project mention: Header-only complex linear solver and function minimizer in C++ | reddit.com/r/numerical | 2021-07-22

    Meanwhile, the library and examples can be found here in Github.

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-06-26.

C++ Optimization related posts


What are some of the best open-source Optimization projects in C++? This list will help you:

Project Stars
1 meshoptimizer 3,302
2 MTuner 2,074
3 palanteer 1,871
4 ALS-Community 1,155
5 osqp 1,054
6 d912pxy 996
7 casadi 989
8 symforce 862
9 vroom 815
10 spot_mini_mini 617
11 ifopt 506
12 gta5_fsr 357
13 OrangeC 238
14 siconos 119
15 biteopt 87
16 SpeciaLUT 6
17 LazyMath 1
Find remote jobs at our new job board 99remotejobs.com. There are 4 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
Developer Ecosystem Survey 2022
Take part in the Developer Ecosystem Survey 2022 by JetBrains and get a chance to win a Macbook, a Nvidia graphics card, or other prizes. We’ll create an infographic full of stats, and you’ll get personalized results so you can compare yourself with other developers.