This file is indexed.

/usr/include/qsopt_ex/qsopt_mpf.h is in libqsopt-ex-dev 2.5.10.3-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
/* WARNING! This file was autogenerated from template */
/****************************************************************************/
/*                                                                          */
/*  This file is part of QSopt_ex.                                          */
/*                                                                          */
/*  (c) Copyright 2006 by David Applegate, William Cook, Sanjeeb Dash,      */
/*  and Daniel Espinoza                                                     */
/*                                                                          */
/*  Sanjeeb Dash ownership of copyright in QSopt_ex is derived from his     */
/*  copyright in QSopt.                                                     */
/*                                                                          */
/*  This code may be used under the terms of the GNU General Public License */
/*  (Version 2.1 or later) as published by the Free Software Foundation.    */
/*                                                                          */
/*  Alternatively, use is granted for research purposes only.               */
/*                                                                          */
/*  It is your choice of which of these two licenses you are operating      */
/*  under.                                                                  */
/*                                                                          */
/*  We make no guarantees about the correctness or usefulness of this code. */
/*                                                                          */
/****************************************************************************/

/*  $RCSfile: qsopt_mpf.h,v $ $Revision: 1.3 $ $Date: 2003/11/05 16:57:39 $" */
#ifndef mpf___QS_QSOPT_H
#define mpf___QS_QSOPT_H

#include <stdlib.h>
#include <stdio.h>

#include <gmp.h>

#ifdef WIN32

#ifdef QSLIB_EXPORTS
#define mpf_QSLIB_INTERFACE __declspec(dllexport)
#else
#define mpf_QSLIB_INTERFACE __declspec(dllimport)
#endif

#else
#define mpf_QSLIB_INTERFACE extern
#endif

#ifdef WIN32
typedef struct mpf_QSLIB_INTERFACE mpf_qsdata *mpf_QSprob;
typedef struct mpf_QSLIB_INTERFACE qsbasis *mpf_QSbas;
#else
typedef struct mpf_qsdata *mpf_QSprob;
typedef struct qsbasis *mpf_QSbas;
#endif

/****************************************************************************/
/*                                                                          */
/*                 PARAMETERS TO SPECIFY OBJECTIVE SENSE                    */
/*                                                                          */
/****************************************************************************/
#include "basicdefs.h"
/*
#define QS_LP_PRIMAL_FEASIBLE   11
#define QS_LP_PRIMAL_INFEASIBLE 12
#define QS_LP_PRIMAL_UNBOUNDED  13
#define QS_LP_DUAL_FEASIBLE     14
#define QS_LP_DUAL_INFEASIBLE   15
#define QS_LP_DUAL_UNBOUNDED    16
*/

/****************************************************************************/
/*                                                                          */
/*                      QSopt Library Functions                             */
/*                                                                          */
/****************************************************************************/
#ifdef  __cplusplus
extern "C"
{
#endif

#ifdef WIN32
/* 
 *  in WINDOWS we make 
 *     mpf_solver_main/mpf_reader_main part of DLL
 */
mpf_QSLIB_INTERFACE int mpf_solver_main ( int argc, char **argv);
mpf_QSLIB_INTERFACE int mpf_reader_main ( int argc, char **argv);
#endif

mpf_QSLIB_INTERFACE void mpf_QSfree ( void *ptr),
		mpf_QSfree_prob ( mpf_QSprob p),
		mpf_QSfree_basis ( mpf_QSbas B),
	  mpf_QSset_precision ( const unsigned prec),/**< set the precision for floating 
																								 point numbers to the given 
																								 number of bits */
		mpf_QSstart ( void),/**< whe we use non native numbers, we need to make 
												 some initializations before operating with the
												 library */
	  mpf_QSend ( void);	/**< just to free any internal static data needed by
												 the variable precision numbers */

mpf_QSLIB_INTERFACE int mpf_QSopt_primal ( mpf_QSprob p, int *status),
		mpf_QSopt_dual ( mpf_QSprob p, int *status),
		mpf_QSopt_pivotin_col ( mpf_QSprob p, int ccnt, int *clist),
		mpf_QSopt_pivotin_row ( mpf_QSprob p, int rcnt, int *rlist),
		mpf_QSopt_strongbranch ( mpf_QSprob p, int ncand, int *candidatelist,
			mpf_t * xlist, mpf_t * down_vals, mpf_t * up_vals,
			int iterations, mpf_t objbound),
		mpf_QSchange_objsense ( mpf_QSprob p, int newsense),
		mpf_QSget_objsense ( mpf_QSprob p, int *newsense),
		mpf_QSnew_col ( mpf_QSprob p,const mpf_t obj,const mpf_t lower,const mpf_t upper,
			const char *name),
		mpf_QSadd_cols ( mpf_QSprob p, int num, int *cmatcnt, int *cmatbeg, int *cmatind,
			mpf_t * cmatval, mpf_t * obj, mpf_t * lower,
			mpf_t * upper, const char **names),
		mpf_QSadd_col ( mpf_QSprob p, int cnt, int *cmatind, mpf_t * cmatval,
			mpf_t obj, mpf_t lower, mpf_t upper, const char *name),
		mpf_QSnew_row ( mpf_QSprob p,const mpf_t rhs, int sense, const char *name),
		mpf_QSadd_ranged_rows ( mpf_QSprob p, int num, int *rmatcnt, int *rmatbeg, 
			int *rmatind,const mpf_t * rmatval,const mpf_t * rhs, char *sense,
			const mpf_t* range, const char **names),
		mpf_QSadd_ranged_row ( mpf_QSprob p, int cnt, int *rmatind,const mpf_t * rmatval,
			const mpf_t * rhs, int sense,const mpf_t * range, const char *name),
		mpf_QSadd_rows ( mpf_QSprob p, int num, int *rmatcnt, int *rmatbeg, int *rmatind,
			const mpf_t * rmatval,const mpf_t * rhs, char *sense, const char **names),
		mpf_QSadd_row ( mpf_QSprob p, int cnt, int *rmatind,const mpf_t * rmatval,
			const mpf_t * rhs, int sense, const char *name),
		mpf_QSdelete_rows ( mpf_QSprob p, int num, int *dellist),
		mpf_QSdelete_row ( mpf_QSprob p, int rowindex),
		mpf_QSdelete_setrows ( mpf_QSprob p, int *flags),
		mpf_QSdelete_named_row ( mpf_QSprob p, const char *rowname),
		mpf_QSdelete_named_rows_list ( mpf_QSprob p, int num, const char **rownames),
		mpf_QSdelete_cols ( mpf_QSprob p, int num, int *dellist),
		mpf_QSdelete_col ( mpf_QSprob p, int colindex),
		mpf_QSdelete_setcols ( mpf_QSprob p, int *flags),
		mpf_QSdelete_named_column ( mpf_QSprob p, const char *colname),
		mpf_QSdelete_named_columns_list ( mpf_QSprob p, int num, const char **colnames),
		mpf_QSchange_senses ( mpf_QSprob p, int num, int *rowlist, char *sense),
		mpf_QSchange_sense ( mpf_QSprob p, int rowindex, int sense),
		mpf_QSchange_coef ( mpf_QSprob p, int rowindex, int colindex, mpf_t coef),
		mpf_QSchange_objcoef ( mpf_QSprob p, int indx, mpf_t coef),
		mpf_QSchange_rhscoef ( mpf_QSprob p, int indx, mpf_t coef),
		mpf_QSchange_range(mpf_QSprob p, int rowindex, mpf_t range),
		mpf_QSchange_bounds ( mpf_QSprob p, int num, int *collist, char *lu, 
			const mpf_t * bounds),
		mpf_QSchange_bound ( mpf_QSprob p, int indx, int lu,const mpf_t bound),
		mpf_QSload_basis ( mpf_QSprob p, mpf_QSbas B),
		mpf_QSread_and_load_basis ( mpf_QSprob p, const char *filename),
		mpf_QSload_basis_array ( mpf_QSprob p, char *cstat, char *rstat),
		mpf_QSload_basis_and_row_norms_array ( mpf_QSprob p, char *cstat, char *rstat, 
			mpf_t * rownorms),
		mpf_QSget_basis_array ( mpf_QSprob p, char *cstat, char *rstat),
		mpf_QSget_basis_and_row_norms_array ( mpf_QSprob p, char *cstat, char *rstat,
			mpf_t * rownorms),
		mpf_QSget_binv_row ( mpf_QSprob p, int indx, mpf_t * binvrow),
		mpf_QSget_tableau_row ( mpf_QSprob p, int indx, mpf_t * tableaurow),
		mpf_QSget_basis_order ( mpf_QSprob p, int *basorder), 
    mpf_QSget_coef (mpf_QSprob p, int rowindex, int colindex, mpf_t*coef),
		mpf_QSget_status ( mpf_QSprob p, int *status),
		mpf_QSget_solution ( mpf_QSprob p, mpf_t * value, mpf_t * x,
			mpf_t * pi, mpf_t * slack, mpf_t * rc),
		mpf_QSget_objval ( mpf_QSprob p, mpf_t * value),
		mpf_QSget_pi_array ( mpf_QSprob p, mpf_t * pi),
		mpf_QSget_rc_array ( mpf_QSprob p, mpf_t * rc),
		mpf_QSget_x_array ( mpf_QSprob p, mpf_t * x),
		mpf_QSget_slack_array ( mpf_QSprob p, mpf_t * slack),
		mpf_QSget_infeas_array ( mpf_QSprob p, mpf_t * pi),
		mpf_QSget_colcount ( mpf_QSprob p),
		mpf_QSget_rowcount ( mpf_QSprob p),
		mpf_QSget_nzcount ( mpf_QSprob p),
		mpf_QSget_obj_list(mpf_QSprob p, int num, int*collist, mpf_t*obj),
		mpf_QSget_obj ( mpf_QSprob p, mpf_t * obj),
		mpf_QSget_rhs ( mpf_QSprob p, mpf_t * rhs),
		mpf_QSget_ranged_rows_list ( mpf_QSprob p, int num, int *rowlist, int **rowcnt,
			int **rowbeg, int **rowind, mpf_t ** rowval, mpf_t ** rhs,
			char **sense, mpf_t **range, char ***names),
		mpf_QSget_ranged_rows ( mpf_QSprob p, int **rowcnt, int **rowbeg, int **rowind,
			mpf_t ** rowval, mpf_t ** rhs, char **sense, 
			mpf_t ** range, char ***names),
		mpf_QSget_senses ( mpf_QSprob p, char*senses),
		mpf_QSget_rows_list ( mpf_QSprob p, int num, int *rowlist, int **rowcnt,
			int **rowbeg, int **rowind, mpf_t ** rowval, mpf_t ** rhs,
			char **sense, char ***names),
		mpf_QSget_rows ( mpf_QSprob p, int **rowcnt, int **rowbeg, int **rowind,
			mpf_t ** rowval, mpf_t ** rhs, char **sense, char ***names),
	  mpf_QSget_columns_list ( mpf_QSprob p, int num, int *collist, int **colcnt,
			int **colbeg, int **colind, mpf_t ** colval, mpf_t ** obj,
			mpf_t ** lower, mpf_t ** upper, char ***names),
		mpf_QSget_columns ( mpf_QSprob p, int **colcnt, int **colbeg, int **colind,
			mpf_t ** colval, mpf_t ** obj, mpf_t ** lower,
			mpf_t ** upper, char ***names),
		mpf_QSget_rownames ( mpf_QSprob p, char **rownames),
		mpf_QSget_colnames ( mpf_QSprob p, char **colnames),
		mpf_QSget_bound ( mpf_QSprob p, int colindex, int lu, mpf_t * bound),
		mpf_QSget_bounds ( mpf_QSprob p, mpf_t * lower, mpf_t * upper),
		mpf_QSget_bounds_list(mpf_QSprob p, int num, int*collist, mpf_t*lb,
			mpf_t*ub),
		mpf_QSget_intflags ( mpf_QSprob p, int *intflags),
		mpf_QSget_intcount ( mpf_QSprob p, int *count),
		mpf_QSget_column_index ( mpf_QSprob p, const char *name, int *colindex),
		mpf_QSget_row_index ( mpf_QSprob p, const char *name, int *rowindex),
		mpf_QSget_named_x ( mpf_QSprob p, const char *colname, mpf_t * val),
		mpf_QSget_named_rc ( mpf_QSprob p, const char *colname, mpf_t * val),
		mpf_QSget_named_pi ( mpf_QSprob p, const char *rowname, mpf_t * val),
		mpf_QSget_named_slack ( mpf_QSprob p, const char *rowname, mpf_t * val),
		mpf_QScompute_row_norms ( mpf_QSprob p),
		mpf_QSwrite_prob ( mpf_QSprob p, const char *filename, const char *filetype),
		mpf_QSwrite_prob_file ( mpf_QSprob p, FILE * file, const char *filetype),
		mpf_QSwrite_basis ( mpf_QSprob p, mpf_QSbas B, const char *filename),
		mpf_QStest_row_norms ( mpf_QSprob p),
		mpf_QSget_itcnt(mpf_QSprob p, int *pI_iter, int *pII_iter, int *dI_iter,
			int *dII_iter, int *tot_iter),
		mpf_QSset_param ( mpf_QSprob p, int whichparam, int newvalue),
		mpf_QSset_param_EGlpNum ( mpf_QSprob p, int whichparam, mpf_t newvalue),
		mpf_QSget_param ( mpf_QSprob p, int whichparam, int *value),
		mpf_QSget_param_EGlpNum ( mpf_QSprob p, int whichparam, mpf_t * value); 

mpf_QSLIB_INTERFACE char *mpf_QSget_probname ( mpf_QSprob p);
mpf_QSLIB_INTERFACE char *mpf_QSget_objname ( mpf_QSprob p);
mpf_QSLIB_INTERFACE char *mpf_QSversion ( void);

mpf_QSLIB_INTERFACE mpf_QSprob mpf_QScreate_prob ( const char *name, int objsense),
		mpf_QSread_prob ( const char *filename, const char *filetype),
		mpf_QSload_prob ( const char *probname, int ncols, int nrows, int *cmatcnt,
			int *cmatbeg, int *cmatind, mpf_t * cmatval, int objsense,
			mpf_t * obj, mpf_t * rhs, char *sense, mpf_t * lower,
			mpf_t * upper, const char **colnames, const char **rownames),
		mpf_QScopy_prob ( mpf_QSprob p, const char *newname);

mpf_QSLIB_INTERFACE mpf_QSbas mpf_QSget_basis ( mpf_QSprob p),
		mpf_QSread_basis ( mpf_QSprob p, const char *filename);

#ifdef  __cplusplus
}
#endif

/****************************************************************************
 *
 * This is the undocumented part of the QSlib interface 
 *
 ****************************************************************************/
/* 
 * functions to facilitate line by line reading from other sources than 
 * files from within MPS/LP parsers  
 * 
 * functions to facilitate the collection of error information instead of 
 * having the parsers print messages to stderr
 *                              by mps/lp format writers
 * 
 * a problem's reporter is used by the solver code to provide important 
 * feedback/progress information
 */

#ifdef WIN32
typedef struct mpf_QSLIB_INTERFACE mpf_qsline_reader *mpf_QSline_reader;
typedef struct mpf_QSLIB_INTERFACE mpf_qsformat_error *mpf_QSformat_error;
typedef struct mpf_QSLIB_INTERFACE mpf_qserror_collector *mpf_QSerror_collector;
typedef struct mpf_QSLIB_INTERFACE mpf_qserror_memory *mpf_QSerror_memory;
#else
typedef struct mpf_qsline_reader *mpf_QSline_reader;
typedef struct mpf_qsformat_error *mpf_QSformat_error;
typedef struct mpf_qserror_collector *mpf_QSerror_collector;
typedef struct mpf_qserror_memory *mpf_QSerror_memory;
#endif

#ifdef  __cplusplus
extern "C"
{
#endif

mpf_QSLIB_INTERFACE int mpf_QSgrab_cache (mpf_QSprob p, int status);

	mpf_QSLIB_INTERFACE const char *mpf_QSformat_error_type_string (
	int tp);

	mpf_QSLIB_INTERFACE int mpf_QSerror_get_type (
	mpf_QSformat_error error);
	mpf_QSLIB_INTERFACE const char *mpf_QSerror_get_desc (
	mpf_QSformat_error error);
	mpf_QSLIB_INTERFACE int mpf_QSerror_get_line_number (
	mpf_QSformat_error error);
	mpf_QSLIB_INTERFACE int mpf_QSerror_get_pos (
	mpf_QSformat_error error);
	mpf_QSLIB_INTERFACE const char *mpf_QSerror_get_line (
	mpf_QSformat_error error);
	mpf_QSLIB_INTERFACE void mpf_QSerror_print (
	FILE * f,
	mpf_QSformat_error error);

	mpf_QSLIB_INTERFACE mpf_QSerror_collector mpf_QSerror_collector_new (
	void *fct,
	void *dest);
	mpf_QSLIB_INTERFACE mpf_QSerror_collector mpf_QSerror_memory_collector_new (
	mpf_QSerror_memory mem);
	mpf_QSLIB_INTERFACE void mpf_QSerror_collector_free (
	mpf_QSerror_collector c);

/****************************************************************************
 * line reader 
 */
	mpf_QSLIB_INTERFACE mpf_QSline_reader mpf_QSline_reader_new (
	void *fct,
	void *data_src);
	/* reader->read_line_fct defaults to fgets */

	mpf_QSLIB_INTERFACE void mpf_QSline_reader_free (
	mpf_QSline_reader reader);

	mpf_QSLIB_INTERFACE void mpf_QSline_reader_set_error_collector (
	mpf_QSline_reader reader,
	mpf_QSerror_collector collector);

	mpf_QSLIB_INTERFACE char *mpf_QSline_reader_get (
	mpf_QSline_reader reader,
	char *s,
	int size);

	mpf_QSLIB_INTERFACE mpf_QSprob mpf_QSget_prob (
	mpf_QSline_reader reader,
	const char *probname,
	const char *filetype);
	/* the MPS and LP parsers uses the fct from reader 
	 * to get to next input line */


/****************************************************************************
 * error memory 
 */
	mpf_QSLIB_INTERFACE mpf_QSerror_memory mpf_QSerror_memory_create (
	int takeErrorLines);
	mpf_QSLIB_INTERFACE void mpf_QSerror_memory_free (
	mpf_QSerror_memory mem);

	mpf_QSLIB_INTERFACE int mpf_QSerror_memory_get_nof (
	mpf_QSerror_memory mem,
	int error_type);
	mpf_QSLIB_INTERFACE int mpf_QSerror_memory_get_nerrors (
	mpf_QSerror_memory mem);

	mpf_QSLIB_INTERFACE mpf_QSformat_error mpf_QSerror_memory_get_last_error (
	mpf_QSerror_memory mem);
	mpf_QSLIB_INTERFACE mpf_QSformat_error mpf_QSerror_memory_get_prev_error (
	mpf_QSformat_error e);

/**************************************************************************** 
 * reporter for solver feedback 
 */
	mpf_QSLIB_INTERFACE void mpf_QSset_reporter (
	mpf_QSprob prob,
	int iterskip,
	void *fct,
	void *dest);

	mpf_QSLIB_INTERFACE int mpf_QSreport_prob (
	mpf_QSprob p,
	const char *filetype,
	mpf_QSerror_collector c);

#ifdef  __cplusplus
}
#endif
#endif													/* mpf___QS_QSOPT_H */