Skip to content

Commit ab0e8f0

Browse files
Update Documentation and NEWS.md
1 parent 5efa413 commit ab0e8f0

File tree

4 files changed

+23
-3
lines changed

4 files changed

+23
-3
lines changed

NEWS.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ClustForOpt release notes
2+
=========================
3+
4+
Version 0.4.0
5+
-------------
6+
7+
Breaking changes
8+
9+
- The `ClustResult` struct has been renamed to `AbstractClustResult`.
10+
- The `ClustResultBest` struct has been renamed to `ClustResult`.
11+
- The structs `ClustResult` and `ClustResultAll` have had several field names renamed: `best_results` to `clust_data`, `best_cost` to `cost`, `clust_config` to `config`. The fields `data_type` and `best_ids` have been removed, because they are already contained explicitly (`k_ids`) or implicitly(call `data_type(data::ClustData)`) in `ClustData`.
12+
- The field names `centers, weights, clustids, cost, iter` in `ClustResultAll` have been renamed, all have now the ending `_all` to indicate that these are the results for all random initializations of the clustering algorithm.

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ keywords = ["clustering", "JuMP", "optimization"]
44
license = "MIT"
55
desc = "julia implementation of using different clustering methods for finding representative periods for the optimization of energy systems"
66
author = ["Holger Teichgraeber"]
7-
version = "0.3.4"
7+
version = "0.4.0"
88

99
[deps]
1010
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![License](http://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat)](LICENSE)
66
[![Build Status](https://travis-ci.com/holgerteichgraeber/ClustForOpt.jl.svg?token=HRFemjSxM1NBCsbHGNDG&branch=master)](https://travis-ci.com/holgerteichgraeber/ClustForOpt.jl)
77

8-
ClustForOpt is a [julia](www.juliaopt.com) implementation of clustering methods for finding representative periods for the optimization of energy systems. The package furthermore provides a multi-node capacity expansion model.
8+
ClustForOpt is a [julia](www.juliaopt.com) implementation of clustering methods for finding representative periods for the optimization of energy systems. The package can be used in conjunction with the multi-node capacity expansion model [CapacityExpansion](https://github.com/YoungFaithful/CapacityExpansion.jl).
99

1010
The package has two main purposes: 1) Provide a simple process of clustering time-series input data, with clustered data output in a generalized type system 2) provide an interface between clustered data and optimization problem.
1111

@@ -38,6 +38,8 @@ add ClustForOpt
3838
```
3939
where `]` opens the julia package manager.
4040

41+
**See [NEWS](NEWS.md) for significant breaking changes when updating from one version of ClustForOpt to another.**
42+
4143
## Documentation
4244
[Stable](https://holgerteichgraeber.github.io/ClustForOpt.jl/stable)
4345

@@ -50,6 +52,8 @@ Generally, the workflow requires three steps:
5052
- clustering
5153
- optimization
5254

55+
An example workflow with examples on how to use the different functions can be found in [`examples/workflow_introduction.jl`](examples/workflow_introduction.jl)
56+
5357
```julia
5458
using ClustForOpt
5559

@@ -102,4 +106,4 @@ For use of DTW barycenter averaging (DBA) and k-shape clustering on single-attri
102106
### Optimization
103107
The function `run_opt()` runs the optimization problem and gives as an output a struct that contains optimal objective function value, decision variables, and additional info. The `run_opt()` function infers the optimization problem type from the input data. See the examples folder for further details.
104108

105-
A Capacity Expansion Optimization Problem that utilizes `ClustForOpt` can be found in the package [CEP](https://github.com/YoungFaithful/CEP.jl).
109+
A Capacity Expansion Optimization Problem that utilizes `ClustForOpt` can be found in the package [CapacityExpansion](https://github.com/YoungFaithful/CapacityExpansion.jl).

src/utils/utils.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,3 +354,7 @@ function data_type(data::ClustData)
354354
return data_type
355355
end
356356

357+
function data_type(data::ClustDataMerged)
358+
return data.data_type
359+
end
360+

0 commit comments

Comments
 (0)