mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-07 01:48:51 -06:00
Reorganize internal solver tests
This commit is contained in:
@@ -6,8 +6,6 @@ import logging
|
||||
from abc import ABC, abstractmethod
|
||||
from typing import Any, Dict, List, Optional
|
||||
|
||||
from overrides import EnforceOverrides
|
||||
|
||||
from miplearn.instance.base import Instance
|
||||
from miplearn.types import (
|
||||
LPSolveStats,
|
||||
@@ -178,7 +176,7 @@ class InternalSolver(ABC):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def add_constraint(self, cobj: Constraint) -> None:
|
||||
def add_constraint(self, cobj: Constraint, name: str = "") -> None:
|
||||
"""
|
||||
Adds a single constraint to the model.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user