Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble With Inputdata.java #6

Open
noahire opened this issue Apr 30, 2018 · 2 comments
Open

Trouble With Inputdata.java #6

noahire opened this issue Apr 30, 2018 · 2 comments

Comments

@noahire
Copy link

noahire commented Apr 30, 2018

Hi,
I i have added all the file but the Exception is still coming up, Kindly help with this..
I think the Inputdata has a problem somewhere, because you gave daysperweeek and hoursperday initial value and yet they return 0.
Nostgrp=0 Noteachers=0 daysperweek=0 hoursperday=0
----Slots----
----------Initial Generation-----------

Fetching details from this generation...

Chromosome no.0: NaN

Chromosome no.1: NaN

Chromosome no.2: NaN

Chromosome no.3: NaN

Chromosome no. 101 :NaN

Chromosome no. 201 :NaN

Most fit chromosome from this generation has fitness = NaN

Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: -1
at java.util.ArrayList.elementData(ArrayList.java:418)
at java.util.ArrayList.get(ArrayList.java:431)
at scheduler.SchedulerMain.selectParentRoulette(SchedulerMain.java:126)
at scheduler.SchedulerMain.createNewGenerations(SchedulerMain.java:68)
at scheduler.SchedulerMain.(SchedulerMain.java:38)
at scheduler.SchedulerMain.main(SchedulerMain.java:244)
C:\Users\Noah\AppData\Local\NetBeans\Cache\8.1\executor-snippets\run.xml:53: Java returned: 1
BUILD FAILED (total time: 2 seconds)

@a-anand-91119
Copy link

First set the input path of file in InputData class.

modify the main method of SchedulerMain as below
public static void main(String[] args) { inputdata id = new inputdata(); id.takeinput(); new SchedulerMain(); }

Then run the SchedulerMain

@Kailashdash
Copy link

First set the input path of file in InputData class. --- I did'nt understand this line.
and after changing the Schdulermain class I am still getting error as inputdata class not found exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants