Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

Commit

Permalink
Fix up dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Nov 22, 2022
1 parent cf87397 commit 51a2be2
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
if: ${{ ! inputs.skip_validation }}
run: |
[ "${{ inputs.version }}" == "$(cat pom.xml | grep -m 1 '<version>' | tr -d '<>/[:alpha:][:space:]')" ] || (>&2 echo "Version does not match value in pom.xml"; exit -1)
[ "${{ inputs.version }}" == "$(cat README.md | grep -m 1 '<version>' | tr -d '<>/[:alpha:][:space:]')" ] || (>&2 echo "Version does not match value in README.md"; exit -1)
- name: Build artifact
run: mvn package
- name: Sign Maven artifacts and create bundle
Expand All @@ -43,10 +44,12 @@ jobs:
mkdir maven
cp pom.xml maven/gd-${{ inputs.version }}.pom
cp target/gd-${{ inputs.version }}.jar maven/gd-${{ inputs.version }}.jar
cp target/gd-${{ inputs.version }}-sources.jar maven/gd-${{ inputs.version }}-sources.jar
pushd maven
gpg -ab gd-${{ inputs.version }}.pom
gpg -ab gd-${{ inputs.version }}.jar
gpg -ab gd-${{ inputs.version }}-sources.jar
jar -cvf gd-${{ inputs.version }}-bundle.jar *
env:
Expand Down
14 changes: 14 additions & 0 deletions COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Copyright 2009-2022 David Hadka and other contributors. All rights reserved.

The MOEA Framework is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.

The MOEA Framework is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.

You should have received a copy of the GNU Lesser General Public License
along with the MOEA Framework. If not, see <http://www.gnu.org/licenses/>.
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,22 @@ GD addresses these concerns by determining the correct weights (for the Chebyche
MOEA/D) needed to produce Pareto solutions near a given set of target points. This way, if we know approximately the location or
shape of the Pareto front, we can direct the optimization algorithm towards that region.

## Installation

Add the following dependency to your `pom.xml`:

```xml

<dependency>
<groupId>org.moeaframework</groupId>
<artifactId>gd</artifactId>
<version>1.0</version>
</dependency>
```

## Usage

To use, reference the `GD-MOEA/D` algorithm and supply a `"targets"` property pointing to a file containing the target
Reference the `GD-MOEA/D` algorithm and supply a `"targets"` property pointing to a file containing the target
points (objective values only). If no `"targets"` is provided, it defaults to targeting uniformly-spaced points generated
by the Normal Boundary Intersection method.

Expand All @@ -31,16 +44,6 @@ NondominatedPopulation result = new Executor()
.run();
```

## Bundling with the MOEA Framework

To use this algorithm within the MOEA Framework, first compile and package this project using Maven:

```
mvn package
```

Then, copy the `.jar` file, typically `target/gd-1.0.0.jar`, into the `lib/` directory of the MOEA Framework.

## License

Copyright 2009-2022 David Hadka and other contributors. All rights reserved.
Expand Down
24 changes: 16 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.moeaframework</groupId>
<artifactId>gd</artifactId>
<version>1.0.0</version>
<version>1.0</version>
<packaging>jar</packaging>

<name>Generalized Decomposition</name>
<description>Generalized Decomposition Extension for the MOEA Framework</description>
<url>http://www.moeaframework.org</url>

<licenses>
<license>
<name>GNU Lesser General Public License, Version 3</name>
<url>http://www.gnu.org/licenses/lgpl.html</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<id>dhadka</id>
Expand All @@ -41,11 +41,6 @@
<artifactId>moeaframework</artifactId>
<version>3.1</version>
</dependency>
<dependency>
<groupId>colt</groupId>
<artifactId>colt</artifactId>
<version>1.2.0</version>
</dependency>
<dependency>
<groupId>com.joptimizer</groupId>
<artifactId>joptimizer</artifactId>
Expand All @@ -60,6 +55,19 @@
<artifactId>maven-jar-plugin</artifactId>
<version>3.3.0</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

0 comments on commit 51a2be2

Please sign in to comment.