Replace Hashable by str

This commit is contained in:
2021-07-15 16:21:40 -05:00
parent 8d89285cb9
commit ef9c48d79a
21 changed files with 123 additions and 133 deletions

View File

@@ -6,7 +6,7 @@ import logging
import re
import sys
from io import StringIO
from typing import Any, List, Dict, Optional, Tuple, Hashable
from typing import Any, List, Dict, Optional, Tuple
import numpy as np
import pyomo
@@ -639,5 +639,5 @@ class PyomoTestInstanceKnapsack(Instance):
}
@overrides
def get_variable_categories(self) -> Dict[str, Hashable]:
def get_variable_categories(self) -> Dict[str, str]:
return {f"x[{i}]": "default" for i in range(len(self.weights))}