| 1 |
/* |
| 2 |
* Copyright (C) 1996-2011 Daniel Waggoner and Tao Zha |
| 3 |
* |
| 4 |
* This free software: you can redistribute it and/or modify |
| 5 |
* it under the terms of the GNU General Public License as published by |
| 6 |
* the Free Software Foundation, either version 3 of the License, or |
| 7 |
* (at your option) any later version. |
| 8 |
* |
| 9 |
* It is distributed in the hope that it will be useful, |
| 10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 |
* GNU General Public License for more details. |
| 13 |
* |
| 14 |
* If you did not received a copy of the GNU General Public License |
| 15 |
* with this software, see <http://www.gnu.org/licenses/>. |
| 16 |
*/ |
| 17 |
|
| 18 |
#include "dw_sbvar_command_line.h" |
| 19 |
|
| 20 |
typedef struct |
| 21 |
{ |
| 22 |
char *csminwel_output_filename; |
| 23 |
char *intermediate_output_filename; |
| 24 |
char *final_output_filename; |
| 25 |
|
| 26 |
PRECISION criterion_start; |
| 27 |
PRECISION criterion_end; |
| 28 |
PRECISION criterion_increment; |
| 29 |
|
| 30 |
int max_iterations_start; |
| 31 |
PRECISION max_iterations_increment; |
| 32 |
|
| 33 |
int max_block_iterations; |
| 34 |
|
| 35 |
int repeat_max; |
| 36 |
PRECISION repeat_tol_obj; |
| 37 |
PRECISION repeat_tol_parms; |
| 38 |
|
| 39 |
int random; |
| 40 |
int random_small; |
| 41 |
int random_small_ndraws; |
| 42 |
int random_max; |
| 43 |
PRECISION random_tol_obj; |
| 44 |
PRECISION random_tol_parms; |
| 45 |
|
| 46 |
TVARCommandLine *cmd; |
| 47 |
} TEstimateInfo; |
| 48 |
|
| 49 |
TEstimateInfo* SetupEstimateFromVARCommandLine(int nargs, char **args, TVARCommandLine *cmd); |
| 50 |
TEstimateInfo* SetupEstimateFromCommandLine(int nargs, char **args); |
| 51 |
void FreeEstimateInfo(TEstimateInfo *info); |
| 52 |
void FindMode_VAR_csminwel(TEstimateInfo *estimate, FILE *f); |
| 53 |
int RepeatEstimation(TEstimateInfo *info, FILE *f_intermediate, FILE *f_final); |