MPSolve  3.2.1
starting-configuration.h
Go to the documentation of this file.
1 /*
2  * This file is part of MPSolve 3.2.1
3  *
4  * Copyright (C) 2001-2020, Dipartimento di Matematica "L. Tonelli", Pisa.
5  * License: http://www.gnu.org/licenses/gpl.html GPL version 3 or higher
6  *
7  * Authors:
8  * Leonardo Robol <leonardo.robol@unipi.it>
9  */
10 
16 #ifndef MPS_STARTING_CONFIGURATION_H_
17 #define MPS_STARTING_CONFIGURATION_H_
18 
19 MPS_BEGIN_DECLS
20 
21 #define MPS_STARTING_CONFIGURATION_INIT { \
22  .n_radii = 0, \
23  .fradii = NULL, \
24  .dradii = NULL, \
25  .partitioning = NULL \
26 }
27 
38  int n_radii;
39 
46  int * partitioning;
47 
52  double * fradii;
53 
57  rdpe_t * dradii;
58 };
59 
61 
70 
72  mps_cluster_item * cluster_item,
73  double clust_rad, double g, rdpe_t eps,
74  double fap[]);
75 
76 
77 MPS_END_DECLS
78 
79 #endif /* MPS_STARTING_CONFIGURATION_H_ */
mps_starting_configuration mps_fcompute_starting_radii(mps_context *s, int n, mps_cluster_item *cluster_item, double clust_rad, double g, rdpe_t eps, double fap[])
Compute radii of the circles where the initial approximation will be disposed by mps_fstart()
Definition: starting.c:102
void mps_starting_configuration_clear(mps_context *ctx, mps_starting_configuration *c)
Clear all the storage that has been allocated inside a starting configuration.
Definition: starting-configuration.c:14
Cluster held in a mps_clusterization.
Definition: cluster.h:72
this struct holds the state of the mps computation
Definition: context.h:55
This struct holds the information about the starting disposal of the approximations that has been obt...
Definition: starting-configuration.h:33
int n_radii
The number of circles on which the approximations should be put.
Definition: starting-configuration.h:38
double * fradii
An array containing the radius of the circles where the roots should be placed.
Definition: starting-configuration.h:52
rdpe_t * dradii
The DPE version of fradii.
Definition: starting-configuration.h:57
int * partitioning
An array of integers that holds the indexes of the approximations that should be put on the different...
Definition: starting-configuration.h:46