Function computeInputMapping
- computeInputMapping(tables, out): InputMapping
Parameters
- tables: readonly Table[]
- out: {
constraints: readonly {
bindings: readonly {
dimensionLabel?: string;
qualifier?: string;
}[];
condition: "eq" | "geq" | "leq";
derivation?: {
kind: "pinnedVariable";
label: string;
} | {
kind: "relaxedConstraintCap";
label: string;
variant: "deficit" | "surplus";
};
label: string;
subjects: readonly ({
kind: "parameter";
label: string;
} | {
kind: "variable";
label: string;
})[];
}[];
dimensions: readonly {
isNumeric: boolean;
label: string;
}[];
objectives: readonly {
derivation?: {
kind: "relaxedConstraint";
label: string;
variant: "deficit" | "surplus";
};
isMaximization: boolean;
isQuadratic: boolean;
label: string;
}[];
parameters: readonly {
bindings: readonly {
dimensionLabel?: string;
qualifier?: string;
}[];
derivation?: {
kind: "pinnedVariable";
label: string;
} | {
kind: "relaxedConstraintCap";
label: string;
variant: "deficit" | "surplus";
};
image: {
isIntegral: boolean;
lowerBound: number | "Infinity" | "-Infinity" | "Dynamic";
upperBound: number | "Infinity" | "-Infinity" | "Dynamic";
};
label: string;
}[];
variables: readonly {
bindings: readonly {
dimensionLabel?: string;
qualifier?: string;
}[];
derivation?: {
kind: "relaxedConstraint";
label: string;
variant: "deficit" | "surplus";
};
image: {
isIntegral: boolean;
lowerBound: number | "Infinity" | "-Infinity" | "Dynamic";
upperBound: number | "Infinity" | "-Infinity" | "Dynamic";
};
label: string;
}[];
}Readonly
constraints: readonly {
bindings: readonly {
dimensionLabel?: string;
qualifier?: string;
}[];
condition: "eq" | "geq" | "leq";
derivation?: {
kind: "pinnedVariable";
label: string;
} | {
kind: "relaxedConstraintCap";
label: string;
variant: "deficit" | "surplus";
};
label: string;
subjects: readonly ({
kind: "parameter";
label: string;
} | {
kind: "variable";
label: string;
})[];
}[]
Readonly
dimensions: readonly {
isNumeric: boolean;
label: string;
}[]
Readonly
objectives: readonly {
derivation?: {
kind: "relaxedConstraint";
label: string;
variant: "deficit" | "surplus";
};
isMaximization: boolean;
isQuadratic: boolean;
label: string;
}[]
Readonly
parameters: readonly {
bindings: readonly {
dimensionLabel?: string;
qualifier?: string;
}[];
derivation?: {
kind: "pinnedVariable";
label: string;
} | {
kind: "relaxedConstraintCap";
label: string;
variant: "deficit" | "surplus";
};
image: {
isIntegral: boolean;
lowerBound: number | "Infinity" | "-Infinity" | "Dynamic";
upperBound: number | "Infinity" | "-Infinity" | "Dynamic";
};
label: string;
}[]
Readonly
variables: readonly {
bindings: readonly {
dimensionLabel?: string;
qualifier?: string;
}[];
derivation?: {
kind: "relaxedConstraint";
label: string;
variant: "deficit" | "surplus";
};
image: {
isIntegral: boolean;
lowerBound: number | "Infinity" | "-Infinity" | "Dynamic";
upperBound: number | "Infinity" | "-Infinity" | "Dynamic";
};
label: string;
}[]
Associates model data with table columns. The returned mapping may be partial (missing parameters and/or variables).