From caf1fe855641599e74013568a0b52203bceadabf Mon Sep 17 00:00:00 2001 From: Davide Fioriti Date: Wed, 18 Feb 2026 16:04:59 +0100 Subject: [PATCH 1/3] enable quadratic for win with scip --- linopy/solver_capabilities.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/linopy/solver_capabilities.py b/linopy/solver_capabilities.py index f0507317..54ce1727 100644 --- a/linopy/solver_capabilities.py +++ b/linopy/solver_capabilities.py @@ -179,21 +179,12 @@ def supports(self, feature: SolverFeature) -> bool: display_name="SCIP", features=frozenset( { - SolverFeature.INTEGER_VARIABLES, - SolverFeature.LP_FILE_NAMES, - SolverFeature.READ_MODEL_FROM_FILE, - SolverFeature.SOLUTION_FILE_NOT_NEEDED, - } - if platform.system() == "Windows" - else { SolverFeature.INTEGER_VARIABLES, SolverFeature.QUADRATIC_OBJECTIVE, SolverFeature.LP_FILE_NAMES, SolverFeature.READ_MODEL_FROM_FILE, SolverFeature.SOLUTION_FILE_NOT_NEEDED, } - # SCIP has a bug with quadratic models on Windows, see: - # https://github.com/PyPSA/linopy/actions/runs/7615240686/job/20739454099?pr=78 ), ), "mosek": SolverInfo( From cee5cf4be72577470da60d48e67ce56cffbfbca9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 18 Feb 2026 18:14:15 +0000 Subject: [PATCH 2/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- linopy/solver_capabilities.py | 1 - 1 file changed, 1 deletion(-) diff --git a/linopy/solver_capabilities.py b/linopy/solver_capabilities.py index 54ce1727..030659de 100644 --- a/linopy/solver_capabilities.py +++ b/linopy/solver_capabilities.py @@ -7,7 +7,6 @@ from __future__ import annotations -import platform from dataclasses import dataclass from enum import Enum, auto from importlib.metadata import PackageNotFoundError From 83a2170d9742ca84165615757c220f3e3d3d76bf Mon Sep 17 00:00:00 2001 From: Davide Fioriti Date: Wed, 25 Feb 2026 11:30:48 +0100 Subject: [PATCH 3/3] Add release note --- doc/release_notes.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/release_notes.rst b/doc/release_notes.rst index 59b4456f..21c4fb79 100644 --- a/doc/release_notes.rst +++ b/doc/release_notes.rst @@ -9,6 +9,7 @@ Upcoming Version * Add ``linopy.breakpoints()`` factory for convenient breakpoint construction from lists, dicts, or keyword arguments. Includes ``breakpoints.segments()`` for disjunctive formulations. * Add the `sphinx-copybutton` to the documentation * Add SOS1 and SOS2 reformulations for solvers not supporting them. +* Enable quadratic problems with SCIP on windows. Version 0.6.4