本文整理汇总了C++中Experiment::start方法的典型用法代码示例。如果您正苦于以下问题:C++ Experiment::start方法的具体用法?C++ Experiment::start怎么用?C++ Experiment::start使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Experiment
的用法示例。
在下文中一共展示了Experiment::start方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
//.........这里部分代码省略.........
{
case 0:
if(long_options[option_index].flag != 0)
break;
printf("option %s", long_options[option_index].name);
if (optarg)
printf(" with arg %s", optarg);
printf("\n");
break;
case 'a':
minKineticRate = atof(optarg);
break;
case 'b':
maxKineticRate = atof(optarg);
break;
case 'c':
numCells = atoi(optarg);
break;
case 'd':
maxBasic = atoi(optarg);
break;
case 'e':
maxPTM = atoi(optarg);
break;
case 'f':
maxComp = atoi(optarg);
break;
case 'g':
numGenerations = atoi(optarg);
break;
case 'h':
maxPromoter = atoi(optarg);
break;
case 'i':
initialConcentration = atof(optarg);
break;
case 'j':
rkTimeLimit = atof(optarg);
break;
case 'k':
rkTimeStep = atof(optarg);
break;
case 'l':
scoringInterval = atoi(optarg);
break;
case 'm':
hillParam = atoi(optarg);
break;
case '?':
break;
default:
abort();
}
}
if (usage_flag){
printf("EvoDevo Help\n");
printf("---------------------------\n");
printf("Flags:\n");
printf(" --help This help message\n");
printf(" --usage This help message\n");
printf(" --graphviz Output graphviz png files displaying the cell configuration\n");
printf(" --gnuplot Output gnuplot png files displaying molecule concentrations over time\n");
printf(" --outputall Output data about each cell every generation\n");
printf(" --csvCell Output csv data containing cell configuration\n");
printf(" --csvData Output csv data containing molecule concentrations\n");
printf(" --deterministic Use deterministic Runge-Kutta solver for solving curves\n");
printf(" --stochastic Use stochastic gillespie algorithm for solving curves\n");
printf("\n");
printf("Parameters:\n");
printf(" --cells <int> Number of Cells to simulate\n");
printf(" --gens <int> Number of Generations to run for\n");
printf(" --minrate <float> Minimum value for random kinetic rates\n");
printf(" --maxrate <float> Maximum value for random kinetic rates\n");
printf(" --maxbasic <int> Maximum number of Basic Proteins\n");
printf(" --maxptm <int> Maximum number of Post Translationally Modified proteins\n");
printf(" --maxcomp <int> Maximum number of Protein-Protein Complexes\n");
printf(" --maxprom <int> Maximum number of Protein-Promoter Interactions\n");
printf(" --initconc <float> Initial concentration of molecules\n");
printf(" --rklim <float> Upper limit on time (x-axis) for differential equation solving\n");
printf(" --rkstep <float> Step size between points for differential equation solving\n");
printf(" --interval <int> Number of generations between equation solving and scoring\n");
printf(" --hill <int> Value of Hill Coefficient for DNA Transcription\n");
return 0;
}
// create our experiment with the options from the command line
Experiment e = Experiment(numCells, numGenerations, maxBasic, maxPTM, maxComp, maxPromoter, minKineticRate, maxKineticRate, rkTimeLimit, rkTimeStep, initialConcentration, rungeKutta_flag, gillespie_flag);
//set options related to output
e.setOutputOptions(graphviz_flag, gnuplot_flag, outputall_flag, csvCell_flag, csvData_flag, scoringInterval);
//start the experiment
e.start();
return 0;
}