ECJ-INTEREST-L Archives

January 2016

ECJ-INTEREST-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Sean Luke <[log in to unmask]>
Reply To:
ECJ Evolutionary Computation Toolkit <[log in to unmask]>
Date:
Sun, 3 Jan 2016 00:34:29 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (10 lines)
On Jan 2, 2016, at 11:20 PM, Atm Golam Bari <[log in to unmask]> wrote:

>>> I am using MultiobjectiveFitness.java  and NSGA2MultiobjectiveFitness.java in my own evaluator as is but renaming  NSGA2MultiobjectiveFitness to xyz. When I call assignFrontRanks(Subpopulation subpop) inside the evluator (same as NSGA2Evaluator calls this method), I get ClassCastException Error on the line ((xyz)(((Individual)(front.get(ind))).fitness)).rank = rank; I can't find the reason. Any clue?

Sound like your fitness object can't be cast to an xyz.  This implies that it's probably still an NSGA2MultiobjectiveFitness.  Did you change what the fitness class was in your parameter file?

Why are you renaming MultiobjectiveFitness.java?  This is highly nonstandard and seems like something that's going to cause a whole heap of problems.  Why not just subclass it?

Sean

ATOM RSS1 RSS2