|
TPCCLIB
|
Random point for optimization routines. More...
#include "tpcclibConfig.h"#include <stdio.h>#include <stdlib.h>#include <math.h>#include <time.h>#include <string.h>#include "tpcextensions.h"#include "tpcrand.h"#include "tpcnlopt.h"Go to the source code of this file.
Functions | |
| int | nloptRandomPoint (double *p, double *low, double *up, unsigned int n, MERTWI *mt) |
| int | nloptGaussianPoint (double *p, double *mean, double *sd, double *low, double *up, unsigned int n, MERTWI *mt) |
Random point for optimization routines.
Definition in file rndpoint.c.
| int nloptGaussianPoint | ( | double * | p, |
| double * | mean, | ||
| double * | sd, | ||
| double * | low, | ||
| double * | up, | ||
| unsigned int | n, | ||
| MERTWI * | mt ) |
Create random parameters with Gaussian distribution.
| p | Pointer to parameter list to be filled, allocated for length n. |
| mean | Pointer to list of mean values for each parameter. |
| sd | Pointer to list of standard deviations for each parameter. |
| low | Pointer to parameter lower limits; generated pseudo-random numbers falling below the lower limit will be set to the limit; NULL if not needed. |
| up | Pointer to parameter upper limits; generated pseudo-random numbers falling above the upper limit will be set to the limit; NULL if not needed. |
| n | List length. |
| mt | Pointer to initiated and seeded Mersenne Twister MT19937 data structure; enter NULL to use drandGaussian() instead. |
Definition at line 70 of file rndpoint.c.
Referenced by nloptIATGO(), nloptMPSO(), and nloptSimplexARRS().
| int nloptRandomPoint | ( | double * | p, |
| double * | low, | ||
| double * | up, | ||
| unsigned int | n, | ||
| MERTWI * | mt ) |
Create random parameters between specified limits.
| p | Pointer to parameter list to be filled. |
| low | Pointer to parameter lower limits. |
| up | Pointer to parameter upper limits. |
| n | List length. |
| mt | Pointer to initiated and seeded Mersenne Twister MT19937 data structure; enter NULL to use drand() instead. |
Definition at line 28 of file rndpoint.c.
Referenced by nloptIATGO(), nloptITGO1(), nloptITGO2(), nloptMPSO(), and nloptSimplexARRS().