Skip to content
CAI
Software that uses CAICheck a score

fslaborg/flips

53.8

Adequate · 13 November 2026

4.1k

lines of production code

F#

primary language

5

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

Flips is a functional-first F\# library designed for modeling and solving Linear Programming (LP) and Mixed-Integer Programming (MIP) problems. It provides a domain-specific language for defining optimization models, including decision variables, constraints, and objectives, alongside utilities for multi-dimensional data indexing and type-safe physical quantities. The system interfaces with various open-source and commercial solvers, such as Google OR-Tools, Gurobi, and IBM CPLEX, to compute solutions for diverse scenarios ranging from basic algebra to complex logistics.

Features

Initial release of Flips F\# Linear Programming System

Introduces Flips, a functional-first F\# library for modeling and solving Linear Programming (LP) and Mixed-Integer Programming (MIP) problems. The release includes the core library, test suite, and example projects, built with .NET 8 and FAKE. It supports open-source solvers (CBC, Google GLOP) and commercial solvers (Gurobi, IBM CPLEX) via the OPTANO library, and provides utilities for pretty-printing expressions and exporting LP/MPS files.

(repo-wide) · high confidence

Initial release of Flips.Examples with diverse optimization demos and CSV export

This change introduces the Flips.Examples project, providing a comprehensive suite of sample models demonstrating the Flips library's capabilities. The examples cover basic linear programming, binary programming, multi-objective optimization, and complex logistics scenarios like coffee roasting and food truck distribution. Key features showcased include the use of DecisionBuilder and ConstraintBuilder for concise model definition, SliceMap for efficient multi-dimensional indexing, and Units of Measure for type-safe physical quantities. Additionally, a new CsvExport utility has been added to allow users to easily export decision variable results to TSV files, and the main Program.fs demonstrates how to configure the solver to write LP and MPS files for debugging.

Flips.Examples · high confidence

Initial release of the Flips optimization modeling library

This change introduces the Flips library, providing a domain-specific language for defining linear optimization models in F\#. It includes core modeling constructs such as Decision (Boolean, Integer, Continuous), Constraint, Objective, and Model types in Domain.fs, along with a Solver module that interfaces with Google OR-Tools (CBC, GLOP) to solve these models. The library also features a comprehensive SliceMap system (SMap through SMap5) for handling multi-dimensional indexed data and constraints, supporting slicing and element-wise operations.

Flips · high confidence

Behavioural changes

Migrate build system to FAKE and .NET 8

The build process has been replaced with a new FAKE-based script (Build.fs) and updated to target .NET 8, removing previous x64 limitations. This change introduces new build targets for cleaning, restoring, building, testing, and publishing NuGet packages, along with a new 'Publish' target that pushes version tags and performs sanity checks before release.

build · high confidence

Test coverage

Initial test suite for Flips algebraic modeling library

Added a new test project (Flips.Tests) that introduces property-based tests using FsCheck and xUnit to validate the mathematical correctness of the library's core types. The suite covers Decision, LinearExpression, Constraint, and Model objects, verifying properties such as commutativity, associativity, and distributivity for arithmetic operations. It also includes specific tests for the Units of Measure feature, ensuring that algebraic rules hold for typed values (e.g., decisions with 'Item' units).

Flips.Tests · high confidence

Dependencies

Upgrade to .NET 8 and update core dependencies

The project has been upgraded to target .NET 8, enabling the use of the latest OrTools and removing previous x64 limitations. This change updates the core library, examples, and test projects to .NET 8, while the main library continues to support .NET Framework 4.6.2. Additionally, key dependencies have been updated, including OPTANO.Modeling to version 3.9.2.537, FSharp.Core to version 8, and Google.OrTools to version 9.14.6206.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 53 → 54 (+1.0)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 84 → 81 (-3.3)
  • Architecture 99 → 99 (+0.0)
  • Maturity 60 → 56 (-3.6)
  • Readiness 34 → 38 (+4.7)
  • Security 79 → 72 (-7.1)

Resolved (4)

  • Coverage not measured — no coverage collector is wired up
  • IL efficiency: 12 authored method(s) exceed the IL budget (Flips.Examples/CoffeeRoastingExample/CoffeeRoastingExample.fs)
  • Off-boarding risk: anonymized user #1
  • Vulnerable: System.Security.Cryptography.Pkcs

New (9)

  • Edited copy of a member (64 corresponding lines) (Flips.Examples/FoodTruckMapExample/FoodTruckMapExample.fs)
  • Off-boarding risk: anonymized user #1
  • Outdated: CsvHelper
  • Outdated: Gurobi.Optimizer
  • Outdated: MSBuild.StructuredLogger
  • Outdated: NuGet.Common
  • Outdated: NuGet.Configuration
  • Outdated: NuGet.Frameworks
  • Outdated: NuGet.Versioning

Architecture

  • Unchanged — 0 containers · 3 contexts · 2 edges

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

fslaborg/flips was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 3b73901d47bce36994435869fdc4f34097654dc8 — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-b8b1a43ae4c3.