Skip to content

Commit abb8fbf

Browse files
Remove Java crap from Optimization chapter
1 parent 0433616 commit abb8fbf

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

Minimization.tex

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,23 +43,12 @@ \chapter{Optimization}
4343
tedious but manageable job. In most cases, however, the goal
4444
function cannot always be expressed analytically.
4545

46-
The classes described in this chapter are different in Smalltalk
47-
and in Java. Therefore we present two class diagrams: figure
48-
\ref{fig:soptimizingclasses} shows the Smalltalk class diagram and
49-
figure \ref{fig:joptimizingclasses} shows the Java class diagram.
50-
The main reason for the difference is the strong typing imposed in
51-
Java preventing the reuse of instance variables.
46+
Figure \ref{fig:soptimizingclasses} shows the Smalltalk class diagram.
5247
\begin{figure}
5348
\centering\includegraphics[width=11cm]{Figures/Optimizing}
5449
\caption{Smalltak classes used in optimization}
5550
\label{fig:soptimizingclasses}
5651
\end{figure}
57-
\begin{figure}
58-
\centering\includegraphics[width=11cm]{Figures/OptimizingJ}
59-
\caption{Java classes used in optimization}
60-
\label{fig:joptimizingclasses}
61-
\end{figure}
62-
6352

6453
\section{Introduction}
6554
\label{sec:optimum} Let us state the problem is general term. Let
@@ -247,9 +236,7 @@ \subsection{Optimizing --- General implementation}
247236
all parts of the optimizing algorithms to find out which point is
248237
the optimum so far. In algorithms working in multiple dimensions,
249238
the method {\tt betterThan} is also used to sort the points from
250-
the best to the worst. In Java, the architecture is a little more
251-
complex because of typing requirements, but the basic design
252-
concept is the same.
239+
the best to the worst.
253240

254241
A convenience instance creation method allows to create instances
255242
for a given function with a given argument. The instance is then
@@ -976,9 +963,7 @@ \subsection{Genetic algorithm --- General implementation}
976963
Finally the chromosome manager must also implement methods
977964
performing each of the genetic operations: reproduction, mutation
978965
and crossover. The Smalltalk implementation supplies methods that
979-
returns a new individual; the Java implementation supplies methods
980-
that add a new individual to the population. The reason for this
981-
difference come from the static typing requirements of Java.
966+
returns a new individual.
982967

983968
The genetic optimizer is the object implementing the genetic
984969
algorithm proper. It is a subclass of the iterative process class
@@ -1183,8 +1168,7 @@ \subsection{Multiple strategy approach --- General implementation}
11831168
iteration.
11841169

11851170
Listing \ref{ls:optimizergeneral} shows the implementation in
1186-
Smalltalk. Listing \ref{lj:optimizergeneral} gives the code for
1187-
the Java implementation. At this point we shall abstain from
1171+
Smalltalk. At this point we shall abstain from
11881172
commenting the code as the reader should have no more need for
11891173
such thing$\ldots$ Hopefully!
11901174

0 commit comments

Comments
 (0)