Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
fc01f13
feat: add SolverReport and extend Result with solver_name
FabianHofmann May 12, 2026
7a2b5f6
refactor: solver state on instance + Result wiring
FabianHofmann May 12, 2026
31ac03d
refactor: introduce Model.apply_result and model.solver
FabianHofmann May 12, 2026
2120cbb
test: update test_no_solver_model_error for new solver attribute
FabianHofmann May 12, 2026
f392a23
test: cover Solver instance persistence and apply_result paths
FabianHofmann May 12, 2026
859be09
feat: add __repr__ to Solver class
FabianHofmann May 12, 2026
da87801
refactor: declare solver capabilities on Solver subclasses
FabianHofmann May 12, 2026
9d9dd4d
refactor: lift to_solver_model/resolve onto Model and drop sense arg
FabianHofmann May 12, 2026
17ecf36
Fix two-step direct solver state and label mapping
FabianHofmann May 12, 2026
490e7eb
refactor: rename two-step solve API to prepare_solver/run_solver
FabianHofmann May 12, 2026
3749f8f
refactor: generalize runtime-conditional solver features
FabianHofmann May 13, 2026
118ca9f
Delete piecewise-feasibility-tests-walkthrough.ipynb
FabianHofmann May 13, 2026
4ab3ddc
refactor: consolidate solve_problem_from_model docstring on abstract …
FabianHofmann May 13, 2026
67d5743
refactor: rename solver translators to _build_solver_model
FabianHofmann May 13, 2026
9975ac8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 13, 2026
ab32e5b
Merge branch 'master' into solver-refac
FabianHofmann May 13, 2026
3d6ba0e
Remove redundant solution sentinel assignment
FabianHofmann May 13, 2026
43a82aa
refactor: Solution.primal/dual as ndarray lookup arrays
FabianHofmann May 13, 2026
cd8e7f8
refactor: drop label state from Solver, primal/dual in build order
FabianHofmann May 13, 2026
cd4fd02
docs: merge Solution ndarray release-notes bullets
FabianHofmann May 13, 2026
e3f77d4
feat: add MIP dual_bound to SolverReport
FabianHofmann May 15, 2026
b9cc9ac
Update CLAUDE.md
FabianHofmann May 15, 2026
2ceffbe
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 15, 2026
8115014
perf: cache constraint labels to avoid matrix rebuild in apply_result
FabianHofmann May 15, 2026
3f5765b
fix: label-indexed Solution.primal/dual, robust to solver iteration o…
FabianHofmann May 15, 2026
e91b3f7
refactor: Solver.from_name factory + dataclass
FabianHofmann May 15, 2026
fe18860
refactor: deprecate solve_problem_from_*, fold to_solver_model into _…
FabianHofmann May 15, 2026
7e89d31
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 15, 2026
48fe431
refactor: lazy available_solvers + per-class Solver.is_available()
FabianHofmann May 16, 2026
2dd59e8
Merge remote-tracking branch 'origin/solver-refac' into solver-refac
FabianHofmann May 16, 2026
5a5ad79
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 16, 2026
2fcae50
refactor: rename apply_result to assign_result
FabianHofmann May 17, 2026
9cef704
feat: add licensed_solvers lazy sequence
FabianHofmann May 17, 2026
405cb2c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 17, 2026
b7442ad
fix init import
FabianHofmann May 18, 2026
fe78904
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 18, 2026
2c4d80e
docs: restructure upcoming release notes into sections
FabianHofmann May 18, 2026
9df973b
make pre-commit happy
FabianHofmann May 18, 2026
0de0dd4
fix: avoid lazy import on dunder probes; mypy fixes
FabianHofmann May 18, 2026
2ed624a
docs: expand and clarify upcoming release notes for solver refactor
FabianHofmann May 18, 2026
f133cb8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 18, 2026
23bfc07
update claude description; include oetc in ci install
FabianHofmann May 18, 2026
1f89a28
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] May 18, 2026
67d60e2
Merge branch 'master' into solver-refac
FabianHofmann May 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ jobs:
- name: Install package and dependencies
run: |
python -m pip install uv
uv pip install --system "$(ls dist/*.whl)[dev,solvers]"
uv pip install --system "$(ls dist/*.whl)[dev,solvers,oetc]"

- name: Test with pytest
env:
Expand Down
16 changes: 7 additions & 9 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co

## Common Development Commands

Before running any commands, ensure you have activated the virtual environment:

```bash
uv sync --extra dev --extra solvers --extra oetc
source .venv/bin/activate
```

### Running Tests
```bash
# Run all tests (excluding GPU tests by default)
Expand Down Expand Up @@ -43,15 +50,6 @@ mypy .
pre-commit run --all-files
```

### Development Setup
```bash
# Create virtual environment and install development dependencies
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install uv
uv pip install -e .[dev,solvers]
```

## High-Level Architecture

linopy is a linear optimization library built on top of xarray, providing N-dimensional labeled arrays for variables and constraints. The architecture follows these key principles:
Expand Down
348 changes: 0 additions & 348 deletions dev-scripts/piecewise-feasibility-tests-walkthrough.ipynb

This file was deleted.

Loading
Loading