Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Monte Carlo Optimization' topicStudent Support Forum > General > Archives > "Monte Carlo Optimization"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Patrick
05/01/13 09:23am

In Response To 'Re: Re: Re: Monte Carlo Optimization'
---------
Hi Bill,

Sorry for the delay in my response. What I am trying to do with the AppendTo is gather sets of data for each iteration. So for each iteration of the loop, I should collect a list of day in either bestParamSets or thrownsets. I know that AppendTo copies the entire list with each additional element, so I am looking for a much more efficient method of doing so. The sum of bestParamSets and thrownsets should be equal to the total number of iterations-1 in the loop. I admit I am a little confused on how to extend Cases to include a list of elements for each iteration?

Thanks for your help,
Patrick

P.S. here is the output I get from the AppendTo version of the code.
Length[bestParamSets]
4955
Length[thrownsets]
5044

In[56]:= bestParamSets[[1]]
Out[56]= {2747.71,1,5.87305,7.0564,1.}

thrownsets[[1]]
{2769.71,7.55847*10^-166,5.87305,7.0564,2.}

URL: ,

Subject (listing for 'Monte Carlo Optimization')
Author Date Posted
Monte Carlo Optimization Patrick 04/19/13 10:11am
Re: Monte Carlo Optimization Bill Simpson 04/21/13 11:00pm
Re: Re: Monte Carlo Optimization Patrick 04/24/13 7:33pm
Re: Re: Re: Monte Carlo Optimization Bill Simpson 04/25/13 4:38pm
Re: Re: Re: Re: Monte Carlo Optimization Patrick 05/01/13 09:23am
Re: Re: Re: Re: Re: Monte Carlo Optimization Bill Simpson 05/02/13 9:08pm
Re: Re: Re: Re: Re: Re: Monte Carlo Optimization Patrick 05/03/13 1:12pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic