Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Linear Solver

ferorferor43 downloads

Solve GMPL linear programs and visualize two-variable feasible regions.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

Write a scalar GMPL/MathProg linear model in a fenced code block and see its solution directly in Reading view. Two-variable models also get a theme-aware feasible-region plot.

```gmpl
var x1 >= 0;
var x2 >= 0;

maximize z: 30*x1 + 40*x2;

subject to c11: 2*x1 + x2 <= 100;
subject to c12: x1 + 3*x2 <= 120;
subject to c13: 2*x1 + 2*x2 <= 100;

end;
```

The plugin reports the objective, variable values, bounds/basis-style statuses, constraint activity and slack. It accepts gmpl, mathprog, and mod fence names.

Supported GMPL subset

  • Scalar var declarations with >=, <=, or fixed (=) numeric bounds
  • integer and binary variable modifiers
  • One named maximize or minimize objective
  • Named subject to constraints using <=, >=, or =
  • Linear arithmetic with +, -, *, /, and parentheses
  • # line comments

Indexed sets, parameters, summations, conditional expressions, and nonlinear terms are intentionally not supported yet. The plugin shows a precise parse error instead of silently misreading them.

Install for development

npm install
npm run check

Copy or symlink this directory into <vault>/.obsidian/plugins/linear-solver, then enable Linear Solver in Obsidian’s Community plugins settings. The runtime files are manifest.json, main.js, and styles.css.

Or build and install it into a vault in one step:

./scripts/install-vault.sh /path/to/your/vault
# Equivalent: npm run install:vault -- /path/to/your/vault

The installer validates that the destination contains .obsidian, builds the current source, and installs only the three runtime files under .obsidian/plugins/linear-solver.

During development, npm run dev watches and rebuilds main.js.

Releases

Pushing a version tag such as 0.1.1 runs the full check suite and publishes a GitHub release containing the three Obsidian runtime files. The workflow also creates GitHub build-provenance attestations for main.js and styles.css. Obsidian requires the tag to match the version in manifest.json exactly, without a v prefix.

To create the same package locally:

npm run package
HealthExcellent
ReviewSatisfactory
About
Solve scalar GMPL/MathProg linear models written in fenced code blocks and view solutions directly in Reading view. Show objective, variable values, bounds/basis-style statuses, constraint activity and slack, render a theme-aware feasible-region plot for two-variable models, and accept gmpl, mathprog, or mod fences.
MathVisualization
Details
Current version
0.1.1
Last updated
3 weeks ago
Created
3 weeks ago
Updates
2 releases
Downloads
43
Compatible with
Obsidian 1.13.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
ferorferor
GitHubferor-botmaker
  1. Community
  2. Plugins
  3. Math
  4. Linear Solver

Related plugins

Excalidraw

Visual PKM powerhouse. Create and edit Excalidraw drawings.

Advanced Canvas

Supercharge your canvas experience. Create presentations, flowcharts and more.

ExcaliBrain

An interactive, structured mind-map of your Obsidian vault.

Latex Suite

Make typesetting LaTeX math as fast as handwriting through snippets, text expansion, and editor enhancements.

Breadcrumbs

Visualise the hierarchy of your vault using a breadcrumb trail or matrix view.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.

Maps

Adds a map layout to bases so you can display notes as an interactive map view.

Numerals

Turn any code block into an advanced calculator. Evaluate math expressions on each line of a code block, including units, currency, and optional TeX rendering.

Persistent Graph

Save and restore the positions of nodes on your graph.

Strange New Worlds

Reveal networked thought and the strange new worlds created by your vault.