//driver2.cpp //more friendly to stopping at anytime #include #include #include long minneurons, maxneurons, minm, maxm, minscale, maxscale, repeat; const int MAX=5000; int main(int argc, char** argv){ long real_maxm; //m needs to be constrained to <= current # of neurons char buf[MAX]; cout<<"\nmin number of neurons? "; cin>>minneurons; cout<< "\nmax number of neurons? "; cin>>maxneurons; cout<< "\nmin inputs_neuron "; cin>>minm; cout<< "\nmax inputs_neuron "; cin>>maxm; cout<< "\nmin scale "; cin>> minscale; cout<< "\nmax scale "; cin>>maxscale; cout<<"\nrepetitions per case? "; cin>>repeat; if(maxm>maxneurons){ maxm=maxneurons; //adjust max inputs/neuron } real_maxm=maxm; int ifactor = 2; for(int l=0;li){ real_maxm=i; }else{ real_maxm=maxm; } for(int j = minm;j<=real_maxm;j*=ifactor){ for(int k=minscale; k<=maxscale;k*=ifactor){ sprintf(buf,"%s %d %d %d","main lyapunov ",i,j,k); cout<