-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(v1.3) | master : fixed randomized quick sort
description: fixed an issue with the implementation of randomized quick sort where, previously, due to an erroneous implementation, the randomized quick sort did not work properly and the whole pareto front could not be captured as the final output.
- Loading branch information
1 parent
fb529ed
commit 408d930
Showing
12 changed files
with
90 additions
and
3 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/main/java/io/onclave/nsga/ii/objectivefunction/ZDT1_1.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/* | ||
* This code file and the codebase/software containing it is | ||
* explicitely licensed to Mr. Debabrata Acharya (@onclave) | ||
* unauthorized use and access of the codebase, parts of the | ||
* codebase, software or parts of this software is not allowed. | ||
*/ | ||
package io.onclave.nsga.ii.objectivefunction; | ||
|
||
import io.onclave.nsga.ii.Interface.IObjectiveFunction; | ||
import io.onclave.nsga.ii.datastructure.Chromosome; | ||
import io.onclave.nsga.ii.datastructure.ParetoObject; | ||
|
||
/** | ||
* | ||
* @author sajib | ||
*/ | ||
public class ZDT1_1 implements IObjectiveFunction { | ||
|
||
private static final String AXIS_TITLE = "x1"; | ||
|
||
@Override | ||
public double objectiveFunction(double geneVaue) { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
|
||
@Override | ||
public double objectiveFunction(Chromosome chromosome) { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
|
||
@Override | ||
public double objectiveFunction(ParetoObject paretoObject) { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
|
||
@Override | ||
public String getAxisTitle() { | ||
return AXIS_TITLE; | ||
} | ||
|
||
} |
46 changes: 46 additions & 0 deletions
46
src/main/java/io/onclave/nsga/ii/objectivefunction/ZDT1_2.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* This code file and the codebase/software containing it is | ||
* explicitely licensed to Mr. Debabrata Acharya (@onclave) | ||
* unauthorized use and access of the codebase, parts of the | ||
* codebase, software or parts of this software is not allowed. | ||
*/ | ||
package io.onclave.nsga.ii.objectivefunction; | ||
|
||
import io.onclave.nsga.ii.Interface.IObjectiveFunction; | ||
import io.onclave.nsga.ii.datastructure.Chromosome; | ||
import io.onclave.nsga.ii.datastructure.ParetoObject; | ||
|
||
/** | ||
* | ||
* @author sajib | ||
*/ | ||
public class ZDT1_2 implements IObjectiveFunction { | ||
|
||
private static final String AXIS_TITLE = "g(x)[1 - sqrt(x1/g(x))]"; | ||
private static final int N = 30; | ||
|
||
@Override | ||
public double objectiveFunction(double geneVaue) { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
|
||
@Override | ||
public double objectiveFunction(Chromosome chromosome) { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
|
||
@Override | ||
public double objectiveFunction(ParetoObject paretoObject) { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
|
||
private double g_x() { | ||
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. | ||
} | ||
|
||
@Override | ||
public String getAxisTitle() { | ||
return AXIS_TITLE; | ||
} | ||
|
||
} |