Compare commits

..

78 Commits

Author SHA1 Message Date
9af877ca60 web: Move to separate repository 2025-11-20 10:18:08 -06:00
ccda7dde9b web: refine style 2025-11-14 15:40:33 -06:00
95ad6eca00 web: Minor changes to icons 2025-11-14 11:14:27 -06:00
61179bb7c7 web: add redo 2025-11-13 08:55:03 -06:00
8b170cdbbf web: update buttons 2025-11-13 08:47:27 -06:00
12c5f9ccca web/backend: Show elapsed time 2025-11-12 15:33:22 -06:00
f53d704e74 web: Show position in line 2025-11-12 15:09:18 -06:00
22f1f9dae5 web/backend: Allow multiple workers 2025-11-12 13:20:45 -06:00
1ef7fc5535 web: Fix timezone 2025-11-12 12:37:16 -06:00
8fe330857d web: Update Dockerfile, Makefile 2025-11-12 12:26:05 -06:00
c9e18d4fe4 web/backend: use multiprocessing instead of threads; improve logging 2025-11-12 11:52:30 -06:00
117bf478f4 web/backend: Run tasks in separate thread 2025-11-12 09:34:45 -06:00
6c57e960aa web: frontend: Switch to express 2025-11-11 15:19:34 -06:00
4c34931b34 web: Prepare containers 2025-11-11 14:46:16 -06:00
18ab2c40ba web: Implement Jobs component 2025-11-11 11:54:22 -06:00
3168036bca web: implement onSolve 2025-11-11 10:49:40 -06:00
60fdf129a1 web: backend: Add CORS endpoints 2025-11-11 10:48:36 -06:00
49e4cdef59 web: backend: Allow user to choose HOST 2025-11-11 10:29:17 -06:00
a465154fec web: Add routes, solve button 2025-11-11 09:44:54 -06:00
1254780e42 web: backend: Implement view endpoint 2025-11-07 11:32:14 -06:00
ad8ee6fe6b web: backend: Make JobProcessor more abstract 2025-11-07 11:16:13 -06:00
e52798da7a web: backend: minor fixes 2025-11-07 10:59:00 -06:00
35dd5ab1a9 web: backend: Implement job queue 2025-11-06 15:22:19 -06:00
5c7b8038a1 web: Initial backend implementation 2025-11-06 13:49:02 -06:00
c2d5e58c75 web: Reorganize into frontend/backend 2025-11-06 12:41:03 -06:00
54b5b9dd7f docs: Fix broken image link 2025-11-05 09:57:17 -06:00
395c041202 Merge branch 'hotfix/0.4.1' into dev 2025-11-05 09:52:36 -06:00
03575d5dc4 Update CHANGELOG 2025-11-05 09:36:27 -06:00
8e2769dc0e web: Update favicon 2025-09-10 15:02:04 -05:00
e96557bed8 web: Add placeholder text 2025-09-10 14:54:26 -05:00
5b9727b0ba web: Add support for transmission contingencies 2025-09-10 14:28:14 -05:00
9f560df4f5 web: Add support for price-sensitive loads 2025-09-10 12:30:11 -05:00
356046be7b web: Standardize capitalization in section headers 2025-09-10 11:55:18 -05:00
201dd34b30 web: Add support for storage units 2025-09-10 11:54:17 -05:00
fd95cefefc web: Handle error during table data update 2025-09-10 10:58:54 -05:00
930c6a3277 web: Optimize table data updates 2025-09-10 10:04:24 -05:00
3eb4cceb54 web: Clean up console logs and reset active cell after edit 2025-09-09 12:11:54 -05:00
5fbf9af286 web: Fix failing tests 2025-09-09 12:05:01 -05:00
1c821dde14 web: changeTimeHorizon, changeTimeStep: Adjust profiled units 2025-09-09 11:39:20 -05:00
055faefa28 web: Sync TextInputRow value with initialValue changes 2025-09-09 11:28:38 -05:00
af7cb92282 web: Adjust padding and margins 2025-09-09 11:10:04 -05:00
872cb7a66e web: Preserve active cell state during table updates 2025-09-09 10:56:57 -05:00
771eb5fa6d web: Fix update columns 2025-09-09 10:56:56 -05:00
840eea9879 web: Add Dockerfile 2025-06-27 11:54:49 -05:00
0dc0a5b460 Implement web case builder
Co-authored-by: Alinson S. Xavier <git@axavier.org>
Co-authored-by: Shaoming Xu <xsm90827@gmail.com>
2025-06-27 11:42:03 -05:00
a09e25db0f web: Remove TEST_SCENARIO and update scenario initialization 2025-06-27 11:41:03 -05:00
53489c1638 web: Update nullable number handling 2025-06-27 11:37:50 -05:00
fff70cce67 Fix ucjl-0.2.json.gz fixture 2025-06-27 10:59:16 -05:00
869498fa97 web: implement data migration, reorganize data folder 2025-06-27 10:59:02 -05:00
cac9d7e230 web: Transmission lines 2025-06-27 10:30:14 -05:00
eb3d39b1ab web: ThermalUnits: onDataChanged 2025-06-25 13:59:07 -05:00
3bf028577e web: ThermalUnits: CSV upload 2025-06-25 13:17:04 -05:00
3f10ad23ca web: ProfiledUnits: Revise CSV upload 2025-06-25 12:15:09 -05:00
7c752e4c31 web: ThermalUnits: Add, delete, and rename 2025-06-25 11:47:44 -05:00
dea5217916 web: ThermalUnits: Implement CSV download 2025-06-25 10:55:45 -05:00
012331c4bd web: DataTable: Use list editor for boolean values 2025-06-25 10:46:55 -05:00
1fea873ddf web: ThermalUnits: Build table data 2025-06-25 10:32:04 -05:00
d78700bdc6 web: Start implementation of ThermalUnitsComponent 2025-06-25 10:12:32 -05:00
02ddaf20dc web: Flatten dir structure 2025-06-25 08:58:39 -05:00
be500b920e web: Add undo functionality 2025-06-24 12:19:41 -05:00
9d48112bb9 web: Propagate bus deletion and renaming 2025-06-24 11:28:21 -05:00
5bfc3ffa55 web: Improve CSV validation 2025-06-24 11:06:26 -05:00
1b37af82e3 web: ProfiledUnits: Add data change and rename functionality 2025-06-24 10:39:06 -05:00
86aababf33 web: ProfiledUnits: Rename and delete 2025-06-24 09:21:54 -05:00
8397571c11 web: Add createProfiledUnit 2025-06-23 16:48:10 -05:00
8827f9e6c8 web: profiled units: Allow CSV upload 2025-06-23 16:06:23 -05:00
eb862e5701 web: Update busOperations to support time-indexed loads 2025-06-23 10:57:46 -05:00
80d8bb838c web: Profiled units 2025-05-29 12:33:06 -05:00
ee7a948a78 web: display toast, maintain table stage, localStorage 2025-05-21 12:01:04 -05:00
0cf93e7aa0 web: use defaults; calculate table height 2025-05-20 10:27:24 -05:00
6d9bbaab4e web: Reorganize 2025-05-16 14:37:53 -05:00
957294f220 web: Accept gz files 2025-05-16 14:32:03 -05:00
d8feef5431 web: Allow changing parameters 2025-05-16 13:44:14 -05:00
6469840f0a Validation; reformat source code 2025-05-15 14:04:16 -05:00
062b38514b Buses 2025-05-15 11:49:42 -05:00
ea58cf1615 web: Initial version 2025-05-12 14:36:57 -05:00
facc9faabf Update README.md 2024-08-19 10:17:16 -05:00
Feng
d34378c660 Update decomposition.md
put application names in subtitle: production cost modeling for time decomposition; stochastic UC for scenario decomposition.
2024-07-14 14:35:02 -05:00
11 changed files with 22 additions and 37 deletions

11
.gitignore vendored
View File

@@ -1,3 +1,4 @@
*-off.md
*.bak *.bak
*.gz *.gz
*.ipynb *.ipynb
@@ -19,6 +20,7 @@
.apdisk .apdisk
.com.apple.timemachine.donotpresent .com.apple.timemachine.donotpresent
.fseventsd .fseventsd
.idea
.ipy* .ipy*
.vscode .vscode
Icon Icon
@@ -32,12 +34,11 @@ benchmark/tables
benchmark/tmp.json benchmark/tmp.json
build build
docs/_build docs/_build
docs/src/tutorials/customizing.md
docs/src/tutorials/lmp.md
docs/src/tutorials/market.md
docs/src/tutorials/usage.md
instances/**/*.json instances/**/*.json
instances/_source instances/_source
local local
notebooks notebooks
docs/src/tutorials/usage.md
docs/src/tutorials/customizing.md
docs/src/tutorials/market.md
docs/src/tutorials/lmp.md
*-off.md

View File

@@ -11,9 +11,12 @@ All notable changes to this project will be documented in this file.
[semver]: https://semver.org/spec/v2.0.0.html [semver]: https://semver.org/spec/v2.0.0.html
[pkjjl]: https://pkgdocs.julialang.org/v1/compatibility/#compat-pre-1.0 [pkjjl]: https://pkgdocs.julialang.org/v1/compatibility/#compat-pre-1.0
## [0.4.2] - 2025-11-27 ## [0.4.1] - 2025-11-05
### Fixed ### Fixed
- KnuOstWat2018: Fixed a bug in `eq_segprod_limit` constraint (#17) - Fix multi-threading issues in Julia 1.12
### Changed
- The package now requires Julia 1.10 or newer
## [0.4.0] - 2024-05-21 ## [0.4.0] - 2024-05-21
### Added ### Added

View File

@@ -2,7 +2,7 @@ name = "UnitCommitment"
uuid = "64606440-39ea-11e9-0f29-3303a1d3d877" uuid = "64606440-39ea-11e9-0f29-3303a1d3d877"
authors = ["Santos Xavier, Alinson <axavier@anl.gov>"] authors = ["Santos Xavier, Alinson <axavier@anl.gov>"]
repo = "https://github.com/ANL-CEEESA/UnitCommitment.jl" repo = "https://github.com/ANL-CEEESA/UnitCommitment.jl"
version = "0.4.2" version = "0.4.1"
[deps] [deps]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"

View File

@@ -108,7 +108,7 @@ See official documentation at: https://anl-ceeesa.github.io/UnitCommitment.jl/
If you use UnitCommitment.jl in your research (instances, models or algorithms), we kindly request that you cite the package as follows: If you use UnitCommitment.jl in your research (instances, models or algorithms), we kindly request that you cite the package as follows:
* **Alinson S. Xavier, Aleksandr M. Kazachkov, Ogün Yurdakul, Feng Qiu**. "UnitCommitment.jl: A Julia/JuMP Optimization Package for Security-Constrained Unit Commitment (Version 0.4)". Zenodo (2024). [DOI: 10.5281/zenodo.4269874](https://doi.org/10.5281/zenodo.4269874). * **Alinson S. Xavier, Aleksandr M. Kazachkov, Ogün Yurdakul, Jun He, Feng Qiu**. "UnitCommitment.jl: A Julia/JuMP Optimization Package for Security-Constrained Unit Commitment (Version 0.4)". Zenodo (2024). [DOI: 10.5281/zenodo.4269874](https://doi.org/10.5281/zenodo.4269874).
If you use the instances, we additionally request that you cite the original sources, as described in the documentation. If you use the instances, we additionally request that you cite the original sources, as described in the documentation.

View File

@@ -107,7 +107,7 @@ Note that this curve also specifies the production limits. Specifically, the fir
```@raw html ```@raw html
<center> <center>
<img src="../assets/cost_curve.png" style="max-width: 500px"/> <img src="../../assets/cost_curve.png" style="max-width: 500px"/>
<div><b>Figure 1.</b> Piecewise-linear production cost curve.</div> <div><b>Figure 1.</b> Piecewise-linear production cost curve.</div>
<br/> <br/>
</center> </center>

View File

@@ -1,8 +1,8 @@
# Decomposition methods # Decomposition methods
## 1. Time decomposition ## 1. Time decomposition for production cost modeling
Solving unit commitment instances that have long time horizons (for example, year-long 8760-hour instances) requires a substantial amount of computational power. To address this issue, UC.jl offers a time decomposition method, which breaks the instance down into multiple overlapping subproblems, solves them sequentially, then reassembles the solution. Solving unit commitment instances that have long time horizons (for example, year-long 8760-hour instances in production cost modeling) requires a substantial amount of computational power. To address this issue, UC.jl offers a time decomposition method, which breaks the instance down into multiple overlapping subproblems, solves them sequentially, then reassembles the solution.
When solving a unit commitment instance with a dense time slot structure, computational complexity can become a significant challenge. For instance, if the instance contains hourly data for an entire year (8760 hours), solving such a model can require a substantial amount of computational power. To address this issue, UC.jl provides a time_decomposition method within the `optimize!` function. This method decomposes the problem into multiple sub-problems, solving them sequentially. When solving a unit commitment instance with a dense time slot structure, computational complexity can become a significant challenge. For instance, if the instance contains hourly data for an entire year (8760 hours), solving such a model can require a substantial amount of computational power. To address this issue, UC.jl provides a time_decomposition method within the `optimize!` function. This method decomposes the problem into multiple sub-problems, solving them sequentially.
@@ -57,7 +57,7 @@ solution = UnitCommitment.optimize!(
) )
``` ```
## 2. Scenario decomposition with Progressive Hedging ## 2. Scenario decomposition with Progressive Hedging for stochstic UC
By default, UC.jl uses the Extensive Form (EF) when solving stochastic instances. This approach involves constructing a single JuMP model that contains data and decision variables for all scenarios. Although EF has optimality guarantees and performs well with small test cases, it can become computationally intractable for large instances or substantial number of scenarios. By default, UC.jl uses the Extensive Form (EF) when solving stochastic instances. This approach involves constructing a single JuMP model that contains data and decision variables for all scenarios. Although EF has optimality guarantees and performs well with small test cases, it can become computationally intractable for large instances or substantial number of scenarios.

View File

@@ -67,19 +67,21 @@ function _add_production_piecewise_linear_eqs!(
(t < T ? Cw * switch_off[gn, t+1] : 0.0) (t < T ? Cw * switch_off[gn, t+1] : 0.0)
) )
else else
# Equation (47a) in Kneuven et al. (2020) # Equation (47a)/(48a) in Kneuven et al. (2020)
eq_segprod_limit_b[sc.name, gn, t, k] = @constraint( eq_segprod_limit_b[sc.name, gn, t, k] = @constraint(
model, model,
segprod[sc.name, gn, t, k] <= segprod[sc.name, gn, t, k] <=
g.cost_segments[k].mw[t] * is_on[gn, t] - g.cost_segments[k].mw[t] * is_on[gn, t] -
Cv * switch_on[gn, t] Cv * switch_on[gn, t] -
(t < T ? max(0, Cv - Cw) * switch_off[gn, t+1] : 0.0)
) )
# Equation (47b) in Kneuven et al. (2020) # Equation (47b)/(48b) in Kneuven et al. (2020)
eq_segprod_limit_c[sc.name, gn, t, k] = @constraint( eq_segprod_limit_c[sc.name, gn, t, k] = @constraint(
model, model,
segprod[sc.name, gn, t, k] <= segprod[sc.name, gn, t, k] <=
g.cost_segments[k].mw[t] * is_on[gn, t] - g.cost_segments[k].mw[t] * is_on[gn, t] -
max(0, Cw - Cv) * switch_on[gn, t] -
(t < T ? Cw * switch_off[gn, t+1] : 0.0) (t < T ? Cw * switch_off[gn, t+1] : 0.0)
) )
end end

Binary file not shown.

Binary file not shown.

View File

@@ -23,7 +23,6 @@ include("validation/repair_test.jl")
include("lmp/conventional_test.jl") include("lmp/conventional_test.jl")
include("lmp/aelmp_test.jl") include("lmp/aelmp_test.jl")
include("market/market_test.jl") include("market/market_test.jl")
include("regression.jl")
basedir = dirname(@__FILE__) basedir = dirname(@__FILE__)
@@ -55,7 +54,6 @@ function runtests()
lmp_aelmp_test() lmp_aelmp_test()
simple_market_test() simple_market_test()
stochastic_market_test() stochastic_market_test()
regression_test()
end end
return return
end end

View File

@@ -1,19 +0,0 @@
# UnitCommitment.jl: Optimization Package for Security-Constrained Unit Commitment
# Copyright (C) 2020, UChicago Argonne, LLC. All rights reserved.
# Released under the modified BSD license. See COPYING.md for more details.
using UnitCommitment, HiGHS, JuMP
function regression_test()
@testset "GitHub Issue #57" begin
instance = UnitCommitment.read(fixture("issue-0057.json.gz"))
model = UnitCommitment.build_model(
instance = instance,
optimizer = HiGHS.Optimizer,
)
JuMP.set_silent(model)
UnitCommitment.optimize!(model)
solution = UnitCommitment.solution(model)
@test solution["Thermal production (MW)"]["gen_524d4c85"][1] == 90.0
end
end