Skip to content

Commit

Permalink
fix(ui-xpansion): add the missing batch_size field in the Xpansion …
Browse files Browse the repository at this point in the history
…parameters view (#1739)
  • Loading branch information
a-zakir authored Sep 28, 2023
1 parent 2b627db commit 58656e0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions webapp/public/locales/en/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@
"xpansion.amplPresolve": "Ampl presolve",
"xpansion.amplSolverBoundsFrequency": "Ampl solve bounds frequency",
"xpansion.relativeGap": "Relative gap",
"xpansion.batchSize": "Batch size",
"xpansion.solver": "Solver",
"xpansion.timeLimit": "Time limit (in hours)",
"xpansion.logLevel": "Log level",
Expand Down
1 change: 1 addition & 0 deletions webapp/public/locales/fr/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@
"xpansion.amplPresolve": "Ampl presolve",
"xpansion.amplSolverBoundsFrequency": "Ampl solve bounds frequency",
"xpansion.relativeGap": "Gap d'optimalité relatif",
"xpansion.batchSize": "Taille du batch",
"xpansion.solver": "Solveur",
"xpansion.timeLimit": "Limite de temps (en heures)",
"xpansion.logLevel": "Niveau de log",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,16 @@ function SettingsForm(props: PropType) {
}}
optional
/>
<TextField
type="number"
label={t("xpansion.batchSize")}
variant="filled"
value={currentSettings.batch_size || ""}
onChange={(e) =>
handleChange("batch_size", parseInt(e.target.value, 10))
}
sx={{ mb: 1 }}
/>
</SelectFields>
<TextField
type="number"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export interface XpansionSettings {
solver?: string;
log_level?: number;
timelimit?: number;
batch_size?: number;
sensitivity_config?: XpansionSensitivitySettings;
}

Expand Down

0 comments on commit 58656e0

Please sign in to comment.