mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 08:18:51 -06:00
web: Add support for storage units
This commit is contained in:
@@ -41,6 +41,21 @@ export const preprocess = (
|
||||
}
|
||||
}
|
||||
|
||||
// Add optional fields
|
||||
for (let field of [
|
||||
"Buses",
|
||||
"Generators",
|
||||
"Storage units",
|
||||
"Price-sensitive loads",
|
||||
"Transmission lines",
|
||||
"Reserves",
|
||||
"Contingencies",
|
||||
]) {
|
||||
if (!result[field]) {
|
||||
result[field] = {};
|
||||
}
|
||||
}
|
||||
|
||||
const scenario = result as unknown as UnitCommitmentScenario;
|
||||
return [scenario, null];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user