-
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.
🚧 WIP: Use the Rust implementation on the Variable (to connect with t…
…he different rust methods easily)
- Loading branch information
1 parent
5ad5bde
commit 3bade43
Showing
2 changed files
with
39 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" | ||
Rust models. Needed for all the important mathematical calculations | ||
and mathematical operations | ||
""" | ||
from typing import TypeVar, Optional | ||
|
||
Bound = TypeVar("Bound", int, float) | ||
|
||
|
||
class EngineVar: | ||
"""Rust Variable for the engine operations.""" | ||
|
||
def __init__( | ||
self, | ||
name: str, | ||
lb: Bound = float("-inf"), | ||
ub: Bound = float("inf"), | ||
v0: Optional[Bound] = None, | ||
only_integer: bool = False | ||
) -> None: ... |
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