Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
EvA2
EvA2
Commits
607f022a
Commit
607f022a
authored
Dec 08, 2015
by
Fabian Becker
Committed by
Fabian Becker
Dec 09, 2015
Browse files
Fix FLensProblem and viewer. setProblemDimension is now in AbstractOptimizationProblem
parent
5b135440
Changes
4
Hide whitespace changes
Inline
Side-by-side
src/eva2/gui/JEFrameRegister.java
View file @
607f022a
...
...
@@ -3,18 +3,10 @@ package eva2.gui;
import
javax.swing.*
;
import
java.util.ArrayList
;
import
java.util.List
;
/*
* Title: EvA2
* Description:
* Copyright: Copyright (c) 2003
* Company: University of Tuebingen, Computer Architecture
* @author Holger Ulmer, Felix Streichert, Hannes Planatscher
* @version: $Revision: 10 $
* $Date: 2006-01-18 11:02:22 +0100 (Wed, 18 Jan 2006) $
* $Author: streiche $
*
*/
public
final
class
JEFrameRegister
{
/**
* Singleton instance.
...
...
src/eva2/problems/AbstractOptimizationProblem.java
View file @
607f022a
...
...
@@ -570,4 +570,13 @@ public abstract class AbstractOptimizationProblem implements InterfaceOptimizati
public
int
getProblemDimension
()
{
return
this
.
problemDimension
;
}
/**
* Length of the x vector at is to be optimized
*
* @param t Length of the x vector at is to be optimized
*/
public
void
setProblemDimension
(
int
t
)
{
this
.
problemDimension
=
t
;
}
}
src/eva2/problems/AbstractProblemDoubleOffset.java
View file @
607f022a
...
...
@@ -73,14 +73,5 @@ public abstract class AbstractProblemDoubleOffset extends AbstractProblemDouble
public
double
getYOffset
()
{
return
this
.
yOffset
;
}
/**
* Length of the x vector at is to be optimized
*
* @param t Length of the x vector at is to be optimized
*/
public
void
setProblemDimension
(
int
t
)
{
this
.
problemDimension
=
t
;
}
}
src/eva2/problems/FLensProblem.java
View file @
607f022a
...
...
@@ -175,7 +175,6 @@ public class FLensProblem extends AbstractOptimizationProblem
*/
private
static
final
long
serialVersionUID
=
4694920294291719310L
;
protected
AbstractEAIndividual
overallBest
=
null
;
protected
int
problemDimension
=
10
;
protected
double
noise
=
0.0
;
protected
double
xOffset
=
0.0
;
protected
double
yOffset
=
0.0
;
...
...
@@ -520,16 +519,6 @@ public class FLensProblem extends AbstractOptimizationProblem
return
"Choose an offset for the objective value."
;
}
/**
* This method allows you to set the number of mulitruns that are to be performed,
* necessary for stochastic optimizers to ensure reliable results.
*
* @param multiruns The number of multiruns that are to be performed
*/
public
void
setProblemDimension
(
int
multiruns
)
{
this
.
problemDimension
=
multiruns
;
}
/**
* This method allows you to toggle the solution representation.
*
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment