thehardwarestore.ai

where AI agents shop for the right tools

── 99307 repos indexed ── | filtered by tag: optimization
plasma-umass/coz ★ 4539 173 APPLICATION

Coz is a causal profiler for native code (C/C++, Rust, Go, Swift, Java) that uses virtual speedup experiments to identify which lines of code, if optimized, would most improve program throughput or latency. It operates by injecting a shared library (libcoz) via LD_PRELOAD or DYLD_INSERT_LIBRARIES, interposing synchronization primitives to track blocking and apply controlled delays on non-selected threads. The profiler outputs a JSON Lines profile that can be visualized with a built-in web viewer (D3.js scatter plots with loess smoothing) or analyzed via CLI. It includes an AI-assisted feature for suggesting progress point placement and optimization advice. The architecture is a hybrid: a core runtime library in C++ with language bindings for Rust, Go, Swift, and Java (JVMTI agent), plus a Python CLI that orchestrates profiling, visualization, and LLM integration. The project is a research artifact from UMass Amherst, published at SOSP 2015, and remains actively developed with modern features like streaming AI support.

RATING: 8.5/10 MAINT: maintained DRIFT: medium
▸ 3 reusable components found
reinterpretcat/vrp ★ 507 101 APPLICATION

This repository is a comprehensive Vehicle Routing Problem (VRP) solver implemented in Rust, organized as a multi-crate workspace. It provides a command-line interface (vrp-cli), a core optimization library (vrp-core), a hyper-heuristic framework (rosomaxa), and format-specific crates for pragmatic JSON and scientific benchmarks (Solomon, Li&Lim, TSPLIB). The solver supports a wide range of VRP variants including capacity, time windows, skills, breaks, reloads, recharges, multi-depot, multi-trip, and route balancing. It employs advanced metaheuristics: ruin-and-recreate, local search (including LKH and SWAP*), and a custom evolutionary algorithm called ROSOMAXA that uses Growing Self-Organizing Maps (GSOM) for population diversity and Thompson sampling for dynamic operator selection. The codebase is highly modular with a trait-based feature system for composing constraints and objectives, type-safe dimension macros, and extensive test coverage including property-based tests. While primarily an application/library, it also contains research experiments (heuristic visualization, GPT-based encoding) and scientific benchmark integration. The project is actively maintained but explicitly labeled as 'permanently experimental' with limited support, and the API may introduce breaking changes in minor versions.

RATING: 8.5/10 MAINT: maintained DRIFT: low
▸ 5 reusable components found
NVIDIA/cuopt ★ 1038 227 APPLICATION

NVIDIA cuOpt is a GPU-accelerated optimization solver library covering linear programming (LP), mixed-integer programming (MIP), quadratic programming (QP), second-order cone programming (SOCP), and vehicle routing problems (VRP, PDP, TSP). The codebase is predominantly an application: it provides multiple deployment forms—a C++ shared library, Python bindings (Cython), a Java JNI interface, a CLI tool (`cuopt_cli`), a gRPC server for remote solves, and a FastAPI-based HTTP server (`cuopt_server`). It also includes comprehensive CI/CD pipelines, benchmarks, and documentation. However, it exhibits a hybrid nature due to its strong research character: advanced algorithmic innovations (e.g., primal-dual hybrid gradient with adaptive step sizing, novel MIP presolve techniques, lattice propagation, deterministic parallel branch-and-bound, SIMD-accelerated MPS parsing, and diversity-based routing heuristics) are deeply embedded in the core solvers. The system is architected as a layered monolith: common utilities and linear algebra form the base, solver-specific modules (PDLP, dual simplex, barrier, branch-and-bound, routing heuristics) sit above, and language bindings and server endpoints wrap the C++ core. Key data flows include parsing MPS/LP files or building problems programmatically, dispatching to the appropriate GPU solver, and retrieving solutions via C structs, Python objects, or protobuf messages. External dependencies include CUDA, cuSPARSE, RMM, NCCL, gRPC, Protobuf, and optionally PaPILO for presolve. The repository is actively maintained with frequent commits and nightly CI, though the presence of deprecated modules and experimental features indicates moderate technical drift.

RATING: 8.3/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
kiegroup/optaplanner ★ 495 105 APPLICATION

OptaPlanner is a Java library for constraint satisfaction optimization, solving planning and scheduling problems such as employee rostering, vehicle routing, and cloud resource allocation. The architecture is modular: a core engine provides heuristic search algorithms (construction heuristics, local search, exhaustive search) and incremental score calculation via two constraint stream implementations (Bavet, a custom tuple-based engine, and Drools, a rule-based engine). The public API centers on annotations (@PlanningSolution, @PlanningEntity, @PlanningVariable) and interfaces (ConstraintProvider, SolverFactory, SolverManager). Key entry points include SolverFactory.create() to build a solver, Solver.solve() to run optimization, and ConstraintVerifier for testing constraints. Data flows involve defining a domain model with planning entities and variables, providing constraints as a ConstraintProvider, and the solver iterating through moves while evaluating scores incrementally. External dependencies include Drools (optional), Quarkus or Spring Boot for integration, Jackson/JAXB for serialization, and JPA for persistence. The repository also includes a benchmarking module, a Kubernetes operator, and extensive example applications.

RATING: 8.3/10 MAINT: active DRIFT: medium
▸ 4 reusable components found
yandex/YaFSDP ★ 990 48 APPLICATION

YaFSDP is a specialized PyTorch library designed to optimize Fully Sharded Data Parallel (FSDP) training for Large Language Models (LLMs). It implements custom sharding strategies that claim up to 20% performance improvements over standard FSDP by reducing communication overhead and optimizing memory usage. The library provides two integration points: a modern composable API via the `fully_shard` function and a legacy-style `YaFSDP` wrapper class that integrates with the `accelerate` ecosystem. It supports advanced features like ragged parameter sharding, CUDA stream-based communication/computation overlap, and optional integration with the Yandex Collective Communication Library (YCCL) for high-performance collectives. The codebase demonstrates high engineering craftsmanship, particularly in its handling of distributed tensor operations and memory management. It utilizes custom tensor subclasses (`RaggedShardDTensor`) to manage non-uniform parameter sizes within sharded groups and implements low-level CUDA stream synchronization to hide communication latency. However, the library relies on internal PyTorch APIs (e.g., `torch._C`, `torch.distributed.fsdp.wrap._...`) and patches external libraries like `accelerate` and `transformers`, which introduces maintenance risks as upstream frameworks evolve.

RATING: 8.1/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
coin-or/Clp ★ 495 100 APPLICATION

COIN-OR CLP is a production-grade linear programming (LP) solver library written in C++. It serves as the LP engine within the COIN-OR optimization ecosystem, consumed by CBC (branch-and-cut MIP framework) and integrating with external applications via the OSI (Open Solver Interface) standard adapter. The code (not the README) shows three complementary solution pathways: primal simplex, dual simplex (both with pluggable pivot rules — Dantzig, steepest edge, Devex, positive edge), and an interior-point barrier method with pluggable Cholesky backends (native dense/sparse, MUMPS, Pardiso, WSMP, CHOLMOD). It also implements a sophisticated modular presolve system (CoinPresolveAction stack), crash heuristics (Idiot, Sprint), a network-simplex specialization with tree-based basis factorization, and dynamic column generation for GUB-structured problems via ClpGubDynamicMatrix. The architecture is genuinely component-based: abstract base classes for matrix representation (ClpMatrixBase), pivot selection (ClpPrimalColumnPivot/ClpDualRowPivot), and factorization (ClpFactorization, CoinAbcTypeFactorization) allow users to substitute custom implementations. Entry points include the ClpSimplex C++ API, a C interface (Clp_C_Interface.h), a standalone executable (ClpMain.cpp), and the OsiClpSolverInterface wrapper. However, the codebase carries substantial research lineage and technical debt. An accelerated 'ABC' (FasterCoin) simplex variant coexists with the standard Clp implementation as largely parallel code paths, ~dozens of compile-time macros gate experimental features, and significant historical code dates to 2002 IBM contributions with mixed vintage updates through 2026. Heavy conditional compilation (Cilk, pthreads, AVX2, external Cholesky libraries), manual memory management, dead '#if 0' blocks, and duplicated pricing/factorization logic (Clp vs Abc) make the code difficult to maintain and test comprehensively. Despite this, the core algorithms are numerically careful and battle-tested at industrial scale, with active CI (Linux/Windows), release automation, and a maintained unit test suite. This is a library you'd embed, not fork — the craftsmanship is in the algorithmic component interfaces (pivot selection, factorization, matrix abstraction) rather than in the overall code cleanliness.

RATING: 8.1/10 MAINT: active DRIFT: medium
▸ 6 reusable components found
intLyc/MTO-Platform ★ 208 36 APPLICATION

MTO-Platform (MToP) is a comprehensive MATLAB benchmarking platform for evolutionary multitasking (EMT). It provides a unified, extensible framework for defining optimization problems, implementing algorithms, and evaluating performance metrics. The platform includes over 50 multitask algorithms (e.g., MFEA, AT-MFEA, TRADE, SSLT), 200+ multitask problem cases (including CEC, WCCI, and real-world benchmarks), and 20+ performance metrics (IGD, HV, Spread, etc.). It supports single-task, multi-task, many-task, multi-objective, constrained, and competitive optimization scenarios. The system features both a graphical user interface (GUI) and a command-line interface, with parallel execution support and integration with external tools like IOHanalyzer and Python Gym environments for policy search. The architecture is modular: base classes (Problem, Algorithm, Metric) define consistent interfaces, and all components inherit from them. Utility modules (Individual, Initialization, Selection, Operator, Multi-objective sorting) are shared across algorithms, promoting code reuse. The codebase also includes real-world applications such as global trajectory optimization, optimal power flow, sensor coverage, and photovoltaic model parameter extraction. While primarily a research platform, it also serves as a library of reusable evolutionary computation components. The repository is actively maintained (v1.10, references to 2026) but exhibits some technical drift: use of deprecated MATLAB functions (textread), large vendored third-party code (SOM Toolbox), and binary .mat files that may cause compatibility issues. Code duplication exists in problem definitions and some algorithm utilities. Despite these issues, the platform is well-structured, extensively documented, and widely cited in the EMT literature.

RATING: 8.0/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
google-research/google-research ★ 38576 8461 DATA_RESEARCH

This repository is a massive, multi-disciplinary research codebase from Google Research, primarily focused on machine learning, optimization, and computer science experiments. While it contains a few application-like components (e.g., a Next.js frontend for model exploration, a Rust-based 3D splatting renderer), the dominant character is data_research, hosting thousands of independent experimental projects. The codebase serves as a central hub for publishing reproducible research in domains including Reinforcement Learning, Computer Vision (NeRF, 3D), NLP (Transformers, LLMs), and Privacy. It relies heavily on shell scripts for environment setup and experiment orchestration, with a mix of Python, C++, Rust, and Java implementations. The infrastructure is robust for research (e.g., `scann` for search, `lila` for experiment management) but exhibits significant fragmentation and technical debt due to the rapid pace of research and mixed framework usage.

RATING: 7.9/10 REPRO: 6.5/10 MAINT: active DRIFT: high
▸ 4 reusable components found
Lymphatus/libcaesium ★ 208 29 APPLICATION

Libcaesium is a Rust library for lossy/lossless compression and conversion of JPEG, PNG, GIF, WebP, and TIFF images, with a C API for cross-language usage. It provides both file-based and in-memory compression, targeting specific output sizes, and preserving EXIF metadata or orientation. The architecture is modular, with format-specific compressors (jpeg.rs, png.rs, etc.) and shared utilities. The code is well-structured, tested across multiple platforms, and integrates advanced libraries like mozjpeg-sys, oxipng, gifski, and libwebp. It avoids framework boilerplate and demonstrates strong engineering practices, though some parts use unsafe Rust for direct JPEG manipulation.

RATING: 7.9/10 MAINT: maintained DRIFT: low
▸ 4 reusable components found
bayesian-optimization/BayesianOptimization ★ 8721 1609 APPLICATION

This is a mature Python library for global optimization of expensive black-box functions using Bayesian optimization. It provides the `BayesianOptimization` class that iteratively fits a Gaussian process regressor (via scikit-learn) to observed function evaluations and uses an acquisition function (Upper Confidence Bound, Expected Improvement, Probability of Improvement, or combined) to propose the next point to evaluate. The library supports constrained optimization, domain reduction, mixed continuous/integer/categorical parameters, asynchronous/parallel optimization, and state persistence. Its architecture is modular: acquisition functions are organized in a strategy pattern, parameters are polymorphic with a base class for custom types, constraints are modeled with separate GPs, and domain reduction is implemented as a transformer. The core algorithm is well-tested and documented, with examples ranging from toy functions to hyperparameter tuning. It is not a research notebook collection or data pipeline; it is a production-grade library intended for integration into optimization workflows.

RATING: 7.8/10 MAINT: maintained DRIFT: medium
▸ 2 reusable components found
coin-or/Cbc ★ 1014 144 APPLICATION

This repository is the COIN-OR Branch and Cut (Cbc) solver, a mature, production-grade mixed-integer linear programming (MIP) solver written in C++. The core engine implements branch-and-cut using LP relaxations, cut generation (via Cgl library), branching rules, and heuristics. The architecture is object-oriented with well-defined abstractions for branching objects, heuristics, cut generators, node selection, and tree management. Key entry points include the CbcModel class for programmatic use, the CbcMain0/CbcMain1 functions for command-line execution, and a comprehensive C API (Cbc_C_Interface.h) for embedding in other languages. The codebase is large (hundreds of source files) and includes numerous specialized heuristics (dive variants, RINS, DINS, feasibility pump, local search, etc.), branching strategies (pseudo-cost, SOS, clique, N-way, orbital), and preprocessing techniques. It integrates with the broader COIN-OR ecosystem (Clp, Osi, CoinUtils, Cgl) and supports parallel execution via threads. Despite its age, the code shows active development with recent additions (conflict graph features, branching ranker, configurable dive heuristics) and a new output framework. However, it carries legacy artifacts: autotools build system, an Attic/ directory with deprecated code, extensive conditional compilation (#ifdef blocks), and some experimental or unfinished features.

RATING: 7.8/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
postgrespro/aqo ★ 500 56 APPLICATION

This repository implements the Adaptive Query Optimization (AQO) extension for PostgreSQL, a machine learning-based system that improves query planning by learning from historical query execution statistics. The extension integrates with PostgreSQL's planner and executor via hook mechanisms to override cardinality estimation with predictions from per-query-class k-nearest neighbors regression models. It features a multi-layer architecture: preprocessing (query classification and mode handling), cardinality estimation (ML-based prediction), postprocessing (statistics collection and model updates), and shared memory persistence for query statistics and ML models. Key operational modes include disabled, learn, intelligent, controlled, and forced, controlled via GUCs. The system automatically tunes learning/usage flags based on prediction stability and includes background workers for maintenance. The extension requires patching PostgreSQL source and rebuilding, with tight coupling to internal planner structures (e.g., RelOptInfo, Plan nodes) and executor functions. Deployment involves setting shared_preload_libraries, configuring GUCs like AQO.mode, and managing memory limits for query classes and feature subspaces. It provides SQL interfaces for managing query classes (enable/disable, status checks) and EXPLAIN integration for runtime visibility. The test suite includes pgbench integration, SQL scripts for feature validation, and Perl scripts for pg_stat_statements compatibility. While the core AQO logic is highly specialized to PostgreSQL, two components demonstrate extractable excellence: the hash function for query normalization (ignoring constants/whitespace) and the standalone k-NN regression implementation with linear smoothing. These show non-obvious skill in handling SQL variability and efficient online learning. However, the deep integration with PostgreSQL internals, version-specific patching requirements, and complex state management introduce maintenance challenges and technical debt risks, particularly during PostgreSQL version upgrades.

RATING: 7.7/10 MAINT: active DRIFT: medium
▸ 2 reusable components found
mil-tokyo/webdnn ★ 1999 149 APPLICATION

WebDNN is a browser-based neural network inference engine that executes ONNX models directly on the client side. It provides four backends—CPU, WebAssembly, WebGL (1/2), and WebGPU—allowing models to run on a wide range of hardware. The repository includes a Python graph transpiler for offline model optimization (shader generation, operator fusion, 8-bit quantization) and a TypeScript runtime with a modular operator registration system. While the runtime is application-oriented (library for web ML inference), the Python transpiler contains research-grade optimization passes and weight compression algorithms, giving the project a hybrid character. The codebase is well-structured with clean abstractions for backends and operators, but some backends (WebGPU, WebAssembly) are partially complete and require specific build toolchains.

RATING: 7.3/10 MAINT: stale DRIFT: medium
▸ 4 reusable components found
uqfoundation/mystic ★ 490 52 APPLICATION

This repository is a Python framework for constrained nonlinear optimization, with a strong emphasis on uncertainty quantification (UQ) and scientific machine learning. It provides a suite of derivative-free global and local optimizers (differential evolution, Nelder-Mead, Powell, etc.) through a common abstract interface, alongside powerful constraint and penalty handling via symbolic equations (using sympy) and decorator-based composition. The library supports ensemble solvers, parallel execution (via pathos/pyina), and includes extensive UQ tools: discrete measures, product measures, expectation bounds, probability of failure, and McDiarmid bounds. It is structured as a reusable Python package with well-documented modules and a large collection of example scripts demonstrating applications from benchmark optimization to XRD surrogate design and geophysical inversion. While the core library is solid and showcases high craftsmanship in its symbolic constraint generation and abstract solver pattern, many example scripts are exploratory and contain hardcoded parameters or incomplete code, reflecting its research origins. The framework is actively maintained but shows some technical drift (e.g., a forked legacy SciPy optimizer, use of eval/exec in logging and plotting, and heavy reliance on optional dependencies like sympy, klepto, and pathos).

RATING: 7.2/10 MAINT: maintained DRIFT: medium
▸ 3 reusable components found
BenBrostoff/draftfast ★ 298 120 APPLICATION

This repository provides a Python library and CLI tool for optimizing daily fantasy sports (DFS) lineups on DraftKings and FanDuel. It reads player salary and projection data from CSV files, enforces contest-specific constraints (salary cap, position limits, custom rules like stacks and exposure), and uses Google OR-Tools to solve the constrained optimization problem, producing lineups that maximize projected points. The library supports a wide range of sports (NFL, NBA, MLB, NHL, soccer, golf, NASCAR, tennis, CS:GO, F1, XFL, and various Showdown/Pickem contest types) and includes utilities for downloading salary CSVs and generating upload files for mass lineup entry. The architecture is a classic monolithic Python package with a clear separation of concerns: data parsing (`csv_parse/`), player pool construction (`player_pool.py`), constraint definition (`lineup_constraints.py`, `settings.py`), optimization core (`optimizer.py`), and output formatting (`orm.py`, `uploaders.py`). The test suite is comprehensive with sport-specific tests and CSV fixtures. The codebase demonstrates practical application of constraint programming to a real-world combinatorial optimization problem, though some components are tightly coupled to the DFS domain.

RATING: 6.9/10 MAINT: maintained DRIFT: medium
▸ 3 reusable components found
agavrel/42_CheatSheet ★ 2008 166 APPLICATION

This repository is a comprehensive educational reference and cheat sheet for 42 School's C programming curriculum. It contains extensive documentation covering C basics, common mistakes, clean coding practices, development tools, curated learning resources, and tutorials on optimization, graphics, and security. The repository also includes a collection of standalone C/C++ code examples demonstrating various programming techniques (SIMD vectorization, multithreading, bit manipulation, socket programming) and a set of remote coding challenges with automated testing. While not a deployable application, it serves as a valuable learning resource and provides reusable code snippets, particularly the SIMD abstraction header for fast word/line counting.

RATING: 6.8/10 MAINT: maintained DRIFT: low
▸ 5 reusable components found
WecoAI/awesome-autoresearch ★ 1049 77 APPLICATION

This repository is a curated list (awesome list) of AutoResearch use cases, implementations, benchmarks, and forks. It does not contain any source code, data, or executable components. The sole content is a README.md file that organizes links to external projects, each with descriptions and links to optimization traces. The repository serves as a directory for the AutoResearch community, not as a software application or data research pipeline. It is a static documentation resource with no runtime behavior, architecture, or data flows.

RATING: 6.8/10 MAINT: maintained DRIFT: low
davidsonfellipe/awesome-wpo ★ 9121 605 APPLICATION

This repository is a curated list of web performance optimization (WPO) resources, including tools, articles, books, talks, and meetups. It is not a software application or a data pipeline; it is a reference list governed by the awesome-list format. The repository contains markdown files (README.md, ARTICLES.md, etc.) and a minimal package.json for linting purposes. There are no executable components, datasets, or reusable code modules. The value lies in the curated links, which are maintained by the community. It is not suitable for direct reuse as a codebase but serves as a comprehensive directory for web performance resources.

RATING: 6.3/10 MAINT: active DRIFT: low
BBuf/Image-processing-algorithm ★ 969 285 APPLICATION

This repository implements a wide range of image processing algorithms in C++ (with some Python components for license plate recognition). It provides functionalities including contrast enhancement, color space conversion, filtering (median, Gaussian, bilateral), feature detection (edges, corners), image interpolation, haze removal, and artistic effects similar to Photoshop. The architecture is modular with algorithms grouped by category in separate directories. Many files include main() functions allowing them to be compiled and run as standalone demonstrations. The primary external dependency is OpenCV, with some files using OpenMP for parallel processing and Intel intrinsics for AVX optimizations. The license plate recognition system integrates C++ preprocessing with TensorFlow/Keras models in Python for character recognition.

RATING: 6.1/10 MAINT: active DRIFT: medium
▸ 5 reusable components found
── end of results ──
$ submit: