Add instance-level features to instance.features

This commit is contained in:
2021-03-31 09:14:06 -05:00
parent 0f5a6745a4
commit 5db4addfa5
3 changed files with 18 additions and 1 deletions

View File

@@ -73,6 +73,14 @@ LearningSolveStats = TypedDict(
total=False,
)
InstanceFeatures = TypedDict(
"InstanceFeatures",
{
"User features": List[float],
},
total=False,
)
VariableFeatures = TypedDict(
"VariableFeatures",
{
@@ -97,6 +105,7 @@ ConstraintFeatures = TypedDict(
Features = TypedDict(
"Features",
{
"Instance": InstanceFeatures,
"Variables": Dict[str, Dict[VarIndex, VariableFeatures]],
"Constraints": Dict[str, ConstraintFeatures],
},