forked from ERGO-Code/HiGHS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fixed all static analysis (strict) from pyright * Updated typing across all highspy, including submodules * Added numpy subclass HighspyArray. This allows for better typing, fast summation and vectorized linear expressions * General cleanup, including fixes from ruff linting and formatting * Added overload functions for improved intellisense * Additional checks, tests, and code coverage * Slight updates to cpp bindings to ensure types are available
- Loading branch information
1 parent
370156f
commit 536983f
Showing
12 changed files
with
3,342 additions
and
1,906 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,199 +1,89 @@ | ||
# from __future__ import annotations | ||
|
||
from ._core import \ | ||
ObjSense, \ | ||
MatrixFormat, \ | ||
HessianFormat, \ | ||
SolutionStatus, \ | ||
BasisValidity, \ | ||
HighsModelStatus, \ | ||
HighsPresolveStatus, \ | ||
HighsBasisStatus, \ | ||
HighsVarType, \ | ||
HighsOptionType, \ | ||
HighsInfoType, \ | ||
HighsStatus, \ | ||
HighsLogType, \ | ||
IisStrategy, \ | ||
IisBoundStatus, \ | ||
HighsSparseMatrix, \ | ||
HighsLp, \ | ||
HighsHessian, \ | ||
HighsModel, \ | ||
HighsInfo, \ | ||
HighsOptions, \ | ||
_Highs, \ | ||
HighsIis, \ | ||
HighsSolution, \ | ||
HighsObjectiveSolution, \ | ||
HighsBasis, \ | ||
HighsRangingRecord, \ | ||
HighsRanging, \ | ||
kHighsInf, \ | ||
kHighsIInf, \ | ||
HIGHS_VERSION_MAJOR, \ | ||
HIGHS_VERSION_MINOR, \ | ||
HIGHS_VERSION_PATCH, \ | ||
simplex_constants, \ | ||
cb, \ | ||
kSolutionStatusNone, \ | ||
kSolutionStatusInfeasible, \ | ||
kSolutionStatusFeasible, \ | ||
kBasisValidityInvalid, \ | ||
kBasisValidityValid | ||
|
||
# kMaximize, \ | ||
# kColwise, \ | ||
# kRowwise, \ | ||
# kRowwisePartitioned, \ | ||
# kTriangular, \ | ||
# kSquare, \ | ||
|
||
# kNotset, \ | ||
# kLoadError, \ | ||
# kModelError, \ | ||
# kPresolveError, \ | ||
# kSolveError, \ | ||
# kPostsolveError, \ | ||
# kModelEmpty, \ | ||
# kOptimal, \ | ||
# kInfeasible, \ | ||
# kUnboundedOrInfeasible, \ | ||
# kUnbounded, \ | ||
# kObjectiveBound, \ | ||
# kObjectiveTarget, \ | ||
# kTimeLimit, \ | ||
# kUnknown, \ | ||
# kSolutionLimit, \ | ||
# kInterrupt, \ | ||
# kMemoryLimit, \ | ||
# kNotPresolved, \ | ||
# kNotReduced, \ | ||
# kInfeasible, \ | ||
# kUnboundedOrInfeasible, \ | ||
# kReduced, \ | ||
# kReducedToEmpty, \ | ||
# kTimeout, \ | ||
# kNullError, \ | ||
# kOptionsError, \ | ||
# kOutOfMemory, \ | ||
# kLower, \ | ||
# kBasic, \ | ||
# kUpper, \ | ||
# kZero, \ | ||
# kNonbasic, \ | ||
# kContinuous, \ | ||
# kInteger, \ | ||
# kSemiContinuous, \ | ||
# kSemiInteger, \ | ||
# kBool, \ | ||
# kInt, \ | ||
# kDouble, \ | ||
# , \ | ||
# , \ | ||
# , \ | ||
# , \ | ||
# , \ | ||
# , \ | ||
# , \ | ||
from ._core import ( | ||
ObjSense, | ||
MatrixFormat, | ||
HessianFormat, | ||
SolutionStatus, | ||
BasisValidity, | ||
HighsModelStatus, | ||
HighsPresolveStatus, | ||
HighsBasisStatus, | ||
HighsVarType, | ||
HighsOptionType, | ||
HighsInfoType, | ||
HighsStatus, | ||
HighsLogType, | ||
IisStrategy, | ||
IisBoundStatus, | ||
HighsSparseMatrix, | ||
HighsLp, | ||
HighsHessian, | ||
HighsModel, | ||
HighsInfo, | ||
HighsOptions, | ||
_Highs, # type: ignore | ||
HighsIis, | ||
HighsSolution, | ||
HighsObjectiveSolution, | ||
HighsBasis, | ||
HighsRangingRecord, | ||
HighsRanging, | ||
kHighsInf, | ||
kHighsIInf, | ||
HIGHS_VERSION_MAJOR, | ||
HIGHS_VERSION_MINOR, | ||
HIGHS_VERSION_PATCH, | ||
simplex_constants, # type: ignore | ||
cb, # type: ignore | ||
kSolutionStatusNone, | ||
kSolutionStatusInfeasible, | ||
kSolutionStatusFeasible, | ||
kBasisValidityInvalid, | ||
kBasisValidityValid, | ||
) | ||
|
||
from .highs import Highs | ||
|
||
__all__ = ["__doc__", | ||
"__version__", | ||
"ObjSense", | ||
"MatrixFormat", | ||
"HessianFormat", | ||
"SolutionStatus", | ||
"BasisValidity", | ||
"HighsModelStatus", | ||
"HighsPresolveStatus", | ||
"HighsBasisStatus", | ||
"HighsVarType", | ||
"HighsOptionType", | ||
"HighsInfoType", | ||
"HighsStatus", | ||
"HighsLogType", | ||
"IisStrategy", | ||
"IisBoundStatus", | ||
"HighsSparseMatrix", | ||
"HighsLp", | ||
"HighsHessian", | ||
"HighsModel", | ||
"HighsInfo", | ||
"HighsOptions", | ||
"_Highs", | ||
"Highs", | ||
"HighsIis", | ||
"HighsSolution", | ||
"HighsObjectiveSolution", | ||
"HighsBasis", | ||
"HighsRangingRecord", | ||
"HighsRanging", | ||
"kHighsInf", | ||
"kHighsIInf", | ||
"HIGHS_VERSION_MAJOR", | ||
"HIGHS_VERSION_MINOR", | ||
"HIGHS_VERSION_PATCH", | ||
"simplex_constants", | ||
"cb", | ||
# "kMinimize", | ||
# "kMaximize", | ||
# "kColwise", | ||
# "kRowwise", | ||
# "kRowwisePartitioned", | ||
# "kTriangular", | ||
# "kSquare", | ||
"kSolutionStatusNone", | ||
"kSolutionStatusInfeasible", | ||
"kSolutionStatusFeasible", | ||
"kBasisValidityInvalid", | ||
"kBasisValidityValid", | ||
# "kNotset", | ||
# "kLoadError", | ||
# "kModelError", | ||
# "kPresolveError", | ||
# "kSolveError", | ||
# "kPostsolveError", | ||
# "kModelEmpty", | ||
# "kOptimal", | ||
# "kInfeasible", | ||
# "kUnboundedOrInfeasible", | ||
# "kUnbounded", | ||
# "kObjectiveBound", | ||
# "kObjectiveTarget", | ||
# "kTimeLimit", | ||
# "kUnknown", | ||
# "kSolutionLimit", | ||
# "kInterrupt", | ||
# "kMemoryLimit", | ||
# "kNotPresolved", | ||
# "kNotReduced", | ||
# "kInfeasible", | ||
# "kUnboundedOrInfeasible", | ||
# "kReduced", | ||
# "kReducedToEmpty", | ||
# "kTimeout", | ||
# "kNullError", | ||
# "kOptionsError", | ||
# "kOutOfMemory", | ||
# "kLower", | ||
# "kBasic", | ||
# "kUpper", | ||
# "kZero", | ||
# "kNonbasic", | ||
# "kContinuous", | ||
# "kInteger", | ||
# "kSemiContinuous", | ||
# "kSemiInteger", | ||
# "kBool", | ||
# "kInt", | ||
# "kDouble", | ||
# "", | ||
# "", | ||
# "", | ||
# "", | ||
# "", | ||
# "", | ||
# "", | ||
] | ||
__all__ = [ | ||
"__doc__", | ||
"ObjSense", | ||
"MatrixFormat", | ||
"HessianFormat", | ||
"SolutionStatus", | ||
"BasisValidity", | ||
"HighsModelStatus", | ||
"HighsPresolveStatus", | ||
"HighsBasisStatus", | ||
"HighsVarType", | ||
"HighsOptionType", | ||
"HighsInfoType", | ||
"HighsStatus", | ||
"HighsLogType", | ||
"IisStrategy", | ||
"IisBoundStatus", | ||
"HighsSparseMatrix", | ||
"HighsLp", | ||
"HighsHessian", | ||
"HighsModel", | ||
"HighsInfo", | ||
"HighsOptions", | ||
"_Highs", | ||
"Highs", | ||
"HighsIis", | ||
"HighsSolution", | ||
"HighsObjectiveSolution", | ||
"HighsBasis", | ||
"HighsRangingRecord", | ||
"HighsRanging", | ||
"kHighsInf", | ||
"kHighsIInf", | ||
"HIGHS_VERSION_MAJOR", | ||
"HIGHS_VERSION_MINOR", | ||
"HIGHS_VERSION_PATCH", | ||
"simplex_constants", | ||
"cb", | ||
"kSolutionStatusNone", | ||
"kSolutionStatusInfeasible", | ||
"kSolutionStatusFeasible", | ||
"kBasisValidityInvalid", | ||
"kBasisValidityValid", | ||
] |
Oops, something went wrong.