saving . . . saved
0
scilab simulation error 21; Invalid index.
Title
Question

Hello All,

I have been very confused because of facing with errors while run my scilab modeling codes, as follow:

[p_opt, fobj_p_opt,np_init, fobj_p_init] = optim_gourguet(Gbis_aleas2, PopSize, Nb_iter, Proba_mut,Proba_cross, Log, ga_params);

optim_gourguet: Initialization of the population

!--error 21

Invalid index.

at line 8 of function FF_aleas_bis called by:

at line 4 of function G_aleas2 called by :

at line 4 of function sg_f called by :

at line 2 of function _sg_f called by :

at line 53 of function optim_gourguet called by:

Nb_iter, Proba_mut, Proba_cross, Log,ga_params)

The mentioned scilab files were attached by following link:


https://drive.google.com/drive/folders/0BwSWd8qXiRAeemg5al9GODFWdjg?usp=sharing

https://www.dropbox.com/s/ft91u7bumt8rc3h/Calibration%20.sce?dl=0

https://www.dropbox.com/s/hot3tbg5ntm6pvt/Optim_GA_inputs.sci?dl=0

https://www.dropbox.com/s/fpwaw5x1uybxcfh/optim_gourguet.sci?dl=0



I am Ph.D. candidate and these codes belong to my research. executing the models are so necessary because of limited time of my dissertation.


Scilab version 5.5.2 have been used.

I am very grateful in advance.

Best Regards

Abdul


Scilab 18-03-17, 1:46 p.m. adiblhf

Answers:

0

The links you've shared don't work any more. Invalid index error occurs when an element that does not exist in the matrix is being accessed.

21-03-17, 2:42 p.m. shamika

Thanks very much for considerations.

The modified links of related files were attached again.

https://www.dropbox.com/s/jlnljf6nm3x4zs1/results.pdf?dl=0

https://www.dropbox.com/s/24hsthhkppeweud/Calibration.sce?dl=0

https://www.dropbox.com/s/up8o1pdoh19xbud/optim_gourguet.sci?dl=0

https://www.dropbox.com/s/jyle3xexm225az1/Optim_GA_inputs.sci?dl=0

https://www.dropbox.com/s/48u9lqhsfekgqm9/fonctions_dynamic.sci?dl=0

https://www.dropbox.com/s/jntnriv7cjd4hys/init_randomX0_sg.sci?dl=0

https://www.dropbox.com/s/h6i9sbek6d8rsaa/fonctions_divers.sci?dl=0





21-03-17, 6:06 p.m. adiblhf

Login to add comment


Log-in to answer to this question.