Skip to content

Commit e38cd0e

Browse files
committed
Upgrading to mango 0.5. Refactored tests.
1 parent 3c0dd99 commit e38cd0e

File tree

11 files changed

+42
-40
lines changed

11 files changed

+42
-40
lines changed

.github/workflows/test-do.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test DistributedOptimization.jl
1+
name: Test DistributedResourceOptimization.jl
22

33
on:
44
push:
@@ -37,7 +37,7 @@ jobs:
3737
- uses: codecov/codecov-action@v5
3838
with:
3939
token: ${{ secrets.CODECOV_TOKEN }}
40-
slug: Digitalized-Energy-Systems/DistributedOptimization.jl
40+
slug: Digitalized-Energy-Systems/DistributedResourceOptimization.jl
4141
fail_ci_if_error: false
4242

4343
test_linux:
@@ -61,5 +61,5 @@ jobs:
6161
- uses: codecov/codecov-action@v5
6262
with:
6363
token: ${{ secrets.CODECOV_TOKEN }}
64-
slug: Digitalized-Energy-Systems/DistributedOptimization.jl
64+
slug: Digitalized-Energy-Systems/DistributedResourceOptimization.jl
6565
fail_ci_if_error: false

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Code of Conduct - DistributedOptimization.jl
1+
# Code of Conduct - DistributedResourceOptimization.jl
22

33
## Our Pledge
44

CONTRIBUTING.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- omit in toc -->
2-
# Contributing to DistributedOptimization.jl
2+
# Contributing to DistributedResourceOptimization.jl
33

44
First off, thanks for taking the time to contribute! ❤️
55

@@ -28,20 +28,20 @@ All types of contributions are encouraged and valued. See the [Table of Contents
2828
## Code of Conduct
2929

3030
This project and everyone participating in it is governed by the
31-
[DistributedOptimization.jl Code of Conduct](https://github.com/OFFIS-DAI/DistributedOptimization.jl/blob/master/CODE_OF_CONDUCT.md).
31+
[DistributedResourceOptimization.jl Code of Conduct](https://github.com/OFFIS-DAI/DistributedResourceOptimization.jl/blob/master/CODE_OF_CONDUCT.md).
3232
By participating, you are expected to uphold this code. Please report unacceptable behavior
3333
to <rico.schrage@uol.de>.
3434

3535

3636
## I Have a Question
3737

38-
> If you want to ask a question, we assume that you have read the available [Documentation](https://offis-dai.github.io/DistributedOptimization.jl/stable/).
38+
> If you want to ask a question, we assume that you have read the available [Documentation](https://offis-dai.github.io/DistributedResourceOptimization.jl/stable/).
3939
40-
Before you ask a question, it is best to search for existing [Issues](https://github.com/OFFIS-DAI/DistributedOptimization.jl/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
40+
Before you ask a question, it is best to search for existing [Issues](https://github.com/OFFIS-DAI/DistributedResourceOptimization.jl/issues) that might help you. In case you have found a suitable issue and still need clarification, you can write your question in this issue. It is also advisable to search the internet for answers first.
4141

4242
If you then still feel the need to ask a question and need clarification, we recommend the following:
4343

44-
- Open an [Issue](https://github.com/OFFIS-DAI/DistributedOptimization.jl/issues/new) with the label `question`.
44+
- Open an [Issue](https://github.com/OFFIS-DAI/DistributedResourceOptimization.jl/issues/new) with the label `question`.
4545
- Provide as much context as you can about what you're running into.
4646
- Provide project and platform versions (julia version, os, etc), depending on what seems relevant.
4747

@@ -60,8 +60,8 @@ We will then take care of the issue as soon as possible.
6060
A good bug report shouldn't leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.
6161

6262
- Make sure that you are using the latest version.
63-
- Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](https://offis-dai.github.io/DistributedOptimization.jl/stable/). If you are looking for support, you might want to check [this section](#i-have-a-question)).
64-
- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/OFFIS-DAI/DistributedOptimization.jl/issues?q=label%3Abug).
63+
- Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the [documentation](https://offis-dai.github.io/DistributedResourceOptimization.jl/stable/). If you are looking for support, you might want to check [this section](#i-have-a-question)).
64+
- To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the [bug tracker](https://github.com/OFFIS-DAI/DistributedResourceOptimization.jl/issues?q=label%3Abug).
6565
- Also make sure to search the internet (including Stack Overflow) to see if users outside of the GitHub community have discussed the issue.
6666
- Collect information about the bug:
6767
- Stack trace (Traceback)
@@ -75,7 +75,7 @@ A good bug report shouldn't leave others needing to chase you up for more inform
7575

7676
We use GitHub issues to track bugs and errors. If you run into an issue with the project:
7777

78-
- Open an [Issue](https://github.com/OFFIS-DAI/DistributedOptimization.jl/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
78+
- Open an [Issue](https://github.com/OFFIS-DAI/DistributedResourceOptimization.jl/issues/new). (Since we can't be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
7979
- Explain the behavior you would expect and the actual behavior.
8080
- Please provide as much context as possible and describe the *reproduction steps* that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case.
8181
- Provide the information you collected in the previous section.
@@ -90,36 +90,36 @@ Once it's filed:
9090

9191
### Suggesting Enhancements
9292

93-
This section guides you through submitting an enhancement suggestion for DistributedOptimization.jl, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.
93+
This section guides you through submitting an enhancement suggestion for DistributedResourceOptimization.jl, **including completely new features and minor improvements to existing functionality**. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.
9494

9595
<!-- omit in toc -->
9696
#### Before Submitting an Enhancement
9797

9898
- Make sure that you are using the latest version.
99-
- Read the [documentation](https://offis-dai.github.io/DistributedOptimization.jl/stable/) carefully and find out if the functionality is already covered, maybe by an individual configuration.
100-
- Perform a [search](https://github.com/OFFIS-DAI/DistributedOptimization.jl/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
99+
- Read the [documentation](https://offis-dai.github.io/DistributedResourceOptimization.jl/stable/) carefully and find out if the functionality is already covered, maybe by an individual configuration.
100+
- Perform a [search](https://github.com/OFFIS-DAI/DistributedResourceOptimization.jl/issues) to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
101101
- Find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the project's developers of the merits of this feature. Keep in mind that we want features that will be useful to the majority of our users and not just a small subset. If you're just targeting a minority of users, consider writing an add-on/plugin library.
102102

103103
<!-- omit in toc -->
104104
#### How Do I Submit a Good Enhancement Suggestion?
105105

106-
Enhancement suggestions are tracked as [GitHub issues](https://github.com/OFFIS-DAI/DistributedOptimization.jl/issues).
106+
Enhancement suggestions are tracked as [GitHub issues](https://github.com/OFFIS-DAI/DistributedResourceOptimization.jl/issues).
107107

108108
- Use a **clear and descriptive title** for the issue to identify the suggestion.
109109
- Provide a **step-by-step description of the suggested enhancement** in as many details as possible.
110110
- **Describe the current behavior** and **explain which behavior you expected to see instead** and why. At this point you can also tell which alternatives do not work for you.
111-
- **Explain why this enhancement would be useful** to most DistributedOptimization.jl users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
111+
- **Explain why this enhancement would be useful** to most DistributedResourceOptimization.jl users. You may also want to point out the other projects that solved it better and which could serve as inspiration.
112112

113113
### Your First Code Contribution
114114

115-
DistributedOptimization.jl follows the typical guidelines for Julia-projects and it is mainly developed using the vscode julia extension.
115+
DistributedResourceOptimization.jl follows the typical guidelines for Julia-projects and it is mainly developed using the vscode julia extension.
116116

117117
The necessary steps for every contribution are:
118118
* Fork the repository.
119119
* Make your changes, ideally connected to an issue.
120120
* Make sure you followed the styleguide below.
121121
* Make sure you have written unit and integration tests.
122-
* Execute the DistributedOptimization.jl tests locally! Some tests require a running MQTT broker, for details take a look at (https://github.com/OFFIS-DAI/DistributedOptimization.jl/blob/development/.github/workflows/test-mango.yml).
122+
* Execute the DistributedResourceOptimization.jl tests locally! Some tests require a running MQTT broker, for details take a look at (https://github.com/OFFIS-DAI/DistributedResourceOptimization.jl/blob/development/.github/workflows/test-mango.yml).
123123
* Create a pull request.
124124
* Look at the output of github actions, we require that all tests pass and that the code-coverage of the diff is at least on par with the existing codebase
125125
* If all checks look fine, a maintainer will start to handle the pull request

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name = "DistributedOptimization"
1+
name = "DistributedResourceOptimization"
22
uuid = "bad89516-e02f-43f9-a1d3-8f2ce98dd1a2"
33
authors = ["Rico Schrage"]
4-
repo = "https://github.com/Digitalized-Energy-Systems/DistributedOptimization.jl"
4+
repo = "https://github.com/Digitalized-Energy-Systems/DistributedResourceOptimization.jl"
55
version = "0.1.0"
66

77
[deps]
@@ -20,7 +20,7 @@ Distributions = "0.25.115"
2020
ECOS = "1.1.3"
2121
JuMP = "1.25.0"
2222
LinearAlgebra = "^1.9"
23-
Mango = "^0.4"
23+
Mango = "^0.5"
2424
OSQP = "0.8.1"
2525
Revise = "3.6.4"
2626
julia = "^1.9"

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
![lifecycle](https://img.shields.io/badge/lifecycle-experimental-blue.svg)
2-
[![MIT License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/Digitalized-Energy-Systems/DistributedOptimization.jl/blob/development/LICENSE)
2+
[![MIT License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/Digitalized-Energy-Systems/DistributedResourceOptimization.jl/blob/development/LICENSE)
33

44
# Distributed Resource Optimization for Julia
55

6-
The package DistributedOptimization.jl (DO) aims to provide a collection of distributed optimization algorithms. The algorithms are implemented without considering one special communication technique or package. DO provides abstract types and function interfaces to implement so-called carriers, which are able to execute the distributed algorithms asynchronous. All algorithms can also be used without carrier using fitting @spawn or @async statements.
6+
The package DistributedResourceOptimization.jl (DRO) aims to provide a collection of distributed optimization algorithms for optimizing distributed resources. The algorithms are implemented without considering one special communication technique or package. DRO provides abstract types and function interfaces to implement so-called carriers, which are able to execute the distributed algorithms asynchronous. All algorithms can also be used without carrier using fitting @spawn or @async statements.
77

8-
Currently there are two tested algorithms:
8+
Currently there are three tested algorithms:
99
* ADMM multi-value consensus such that the sum of all resp values equals a target vector
10+
* ADMM sharing variant on flexibility providing resources
1011
* COHDA, Combinatorial Optimization Heuristic for Distributed Agents, which minimizes the distance of schedule sums to a given target schedule
1112

1213
There is one carrier implemented:
@@ -18,7 +19,7 @@ Note that the package is highly work in progress.
1819

1920
```julia
2021
using Mango
21-
using DistributedOptimization
22+
using DistributedResourceOptimization
2223

2324
@role struct HandleOptimizationResultRole
2425
got_it::Bool = false
@@ -68,7 +69,7 @@ end
6869

6970
```julia
7071
using Mango
71-
using DistributedOptimization
72+
using DistributedResourceOptimization
7273

7374
container = create_tcp_container("127.0.0.1", 5555)
7475

test/consensus_admm_tests.jl renamed to test/admm/consensus_admm_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Mango
2-
using DistributedOptimization
2+
using DistributedResourceOptimization
33
using Test
44

55
@role struct HandleOptimizationResultRole

test/sharing_admm_tests.jl renamed to test/admm/sharing_admm_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Mango
2-
using DistributedOptimization
2+
using DistributedResourceOptimization
33
using Test
44

55
@role struct HandleOptimizationResultRole
File renamed without changes.

test/cohda_mango_tests.jl renamed to test/cohda/cohda_mango_tests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using Mango
2-
using DistributedOptimization
2+
using DistributedResourceOptimization
33

44
@testset "TestCOHDAWithMangoCarrier" begin
55
container = create_tcp_container("127.0.0.1", 5555)

test/cohda_tests.jl renamed to test/cohda/cohda_tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using Test
2-
using DistributedOptimization
2+
using DistributedResourceOptimization
33

4-
import DistributedOptimization: cohda_default_performance, merge_sysconfigs, merge_candidates,
4+
import DistributedResourceOptimization: cohda_default_performance, merge_sysconfigs, merge_candidates,
55
perceive, decide
66

77
@testset "TestCohdaDefaultPerformance" begin

0 commit comments

Comments
 (0)