X-shooter Pipeline Reference Manual 3.8.15
xsh_model_sa.h
Go to the documentation of this file.
1/* $Id: xsh_model_sa.h,v 1.4 2008-05-23 09:08:18 amodigli Exp $
2 *
3 * This file is part of the ESO X-shooter Pipeline
4 * Copyright (C) 2006 European Southern Observatory
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 */
20/* sa.h Prototypes for Simulated Annealing library */
21
22/* rcsid: @(#)sa.h 1.2 15:54:42 3/30/93 EFC */
23
24#ifndef XSH_MODEL_SA_H
25#define XSH_MODEL_SA_H 1.2
26
27#include "xsh_model_kernel.h"
28
29typedef float (*CostFunction)(double*);
30
31
32/* the value that causes the "set/query" functions to just query */
33#define NO_VALUE -1
34#define NO_VALUE_INT -1
35#define NO_VALUE_FLOAT -1.0
36
37int xsh_SAInit(CostFunction f, int d);
38void xsh_SAfree(void);
39int xsh_SAiterations(int it);
40int xsh_SAdwell(int d);
41float xsh_SABoltzmann(float k);
42float xsh_SAlearning_rate(float r);
43float xsh_SAtemperature(float t);
44float xsh_SAjump(float j);
45float xsh_SArange(float r);
46void xsh_SAinitial(double* xi);
47void xsh_SAcurrent(double* xc);
48void xsh_SAoptimum(double* xb);
49float xsh_SAmelt(int iters);
50float xsh_SAanneal(int iters);
51
52#endif
53
54
float xsh_SAanneal(int iters)
Definition: xsh_model_sa.c:431
void xsh_SAinitial(double *xi)
Definition: xsh_model_sa.c:333
void xsh_SAoptimum(double *xb)
Definition: xsh_model_sa.c:358
void xsh_SAfree(void)
Definition: xsh_model_sa.c:227
void xsh_SAcurrent(double *xc)
Definition: xsh_model_sa.c:345
int xsh_SAdwell(int d)
Definition: xsh_model_sa.c:252
float xsh_SABoltzmann(float k)
Definition: xsh_model_sa.c:267
float xsh_SAmelt(int iters)
Definition: xsh_model_sa.c:375
float xsh_SAtemperature(float t)
Definition: xsh_model_sa.c:280
float xsh_SAjump(float j)
Definition: xsh_model_sa.c:306
int xsh_SAiterations(int it)
Definition: xsh_model_sa.c:239
float xsh_SArange(float r)
Definition: xsh_model_sa.c:319
float xsh_SAlearning_rate(float r)
Definition: xsh_model_sa.c:293
int xsh_SAInit(CostFunction f, int d)
Definition: xsh_model_sa.c:191
float(* CostFunction)(double *)
Definition: xsh_model_sa.h:29