/[ascend]/trunk/base/generic/solver/conopt.h
ViewVC logotype

Contents of /trunk/base/generic/solver/conopt.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1751 - (show annotations) (download) (as text)
Mon Feb 11 05:27:18 2008 UTC (12 years, 1 month ago) by jpye
File MIME type: text/x-chdr
File size: 22799 byte(s)
Fixed bug #370 (CONOPT_LINKED behaviour on Windows, problems with 'PREDECOR')
1 /*
2 Permission has been obtained from Arne Drud, Fri Jul 6, 2007, to include
3 this file in the ASCEND distribution. He is aware that ASCEND is an
4 open source project license under the GNU General Public License.
5
6 Note that this version of the file comes from CONOPT version 3.14.
7 */
8
9 #ifndef CONOPT_H
10 #define CONOPT_H
11
12 /*****************************************************************************/
13 /* File: conopt.h */
14 /* Version 3.13d */
15 /* */
16 /* Copyright (C) 1995-2003 by ARKI Consulting & Development A/S */
17 /* All Rights Reserved. */
18 /* */
19 /* THIS MATERIAL IS CONSIDERED A TRADE SECRET. */
20 /* UNAUTHORIZED ACCESS, USE, REPRODUCTION OR DISTRIBUTION IS PROHIBITED. */
21 /* */
22 /* Last Modified December 16, 2003 */
23 /*****************************************************************************/
24 #if defined(_WIN32)
25 #define COI_CALL __stdcall
26 #define FNAME_UCASE_PREDECOR 1
27 #else
28 #define COI_CALL
29 #endif
30
31 typedef int (COI_CALL *COI_READMATRIX) ( double* LOWER, double* CURR, double* UPPER, int* VSTA, int* TYPE, double* RHS,
32 int* ESTA, int* COLSTA, int* ROWNO, double* VALUE,
33 int* NLFLAG, int* N, int* M, int* NZ, double* USRMEM );
34 typedef int (COI_CALL *COI_FDEVAL ) ( double* X, double* G, double* JAC, int* ROWNO, int* JCNM, int* MODE,
35 int* IGNERR, int* ERRCNT, int* NEWPT, int* N, int* NJ, double* USRMEM );
36 typedef int (COI_CALL *COI_STATUS ) ( int* MODSTA, int* SOLSTA, int* ITER, double* OBJVAL, double* USRMEM );
37 typedef int (COI_CALL *COI_SOLUTION ) ( double* XVAL, double* XMAR, int* XBAS, int* XSTA,
38 double* YVAL, double* YMAR, int* YBAS, int* YSTA,
39 int* N, int* M, double* USRMEM );
40 typedef int (COI_CALL *COI_MESSAGE ) ( int* SMSG, int* DMSG, int* NMSG, int* LLEN,
41 double* USRMEM, char* MSGV, int MSGLEN );
42 typedef int (COI_CALL *COI_PROGRESS ) ( int* LEN_INT, int* INT, int* LEN_RL, double* RL, double* X, double* USRMEM );
43 typedef int (COI_CALL *COI_OPTFILE ) ( int* FNLEN, double* USRMEM, char* FN, int LENFN );
44 typedef int (COI_CALL *COI_OPTION ) ( int* NCALL, double* RVAL, int* IVAL, int* LVAL,
45 double* USRMEM, char* NAME, int LENNAME );
46 typedef int (COI_CALL *COI_ERRMSG ) ( int* ROWNO, int* COLNO, int* POSNO, int* MSGLEN,
47 double* USRMEM, char* MSG, int LENMSG );
48 typedef int (COI_CALL *COI_TRIORD ) ( int* CASE, int* ROWNO, int* COLNO, double* VALUE, double* RESID,
49 int* INF, double* USRMEM );
50 typedef int (COI_CALL *COI_FDINTERVAL) ( double* XMIN, double* XMAX, double* GMIN, double* GMAX,
51 double* JMIN, double* JAMX, int* ROWNO, int* JCNM, int* MODE,
52 double* PINF, int* N, int* NJ, double* USRMEM );
53 typedef int (COI_CALL *COI_2DDIR ) ( double* X, double* DX, double* D2G, int* ROWNO, int* JCNM, int* NEWPT,
54 int* NODRV, int* N, int* NJ, double* USRMEM );
55 typedef int (COI_CALL *COI_2DDIRLAG ) ( double* X, double* DX, double* U, double* D2G, int* NEWPT,
56 int* NODRV, int* N, int* M, double* USRMEM );
57 typedef int (COI_CALL *COI_2DLAGR ) ( double* X, double* U, int* HSRW, int* HSCL, double* HSVL, int* NODRV, int* N,
58 int* M, int* NHESS, int* MODE, double* USRMEM );
59 typedef int (COI_CALL *COI_SRFILE ) ( int* FNLEN, double* USRMEM, char* FN, int LENFN );
60 typedef int (COI_CALL *COI_DUALBND ) ( double* LBND, double* UBND, int* COLS, int* NBND, double* USRMEM );
61
62
63 #if defined(FNAME_LCASE_DECOR) /* fortran names: lower case, trailing _ */
64 # define COIDEF_Size coidef_size_
65 # define COIDEF_Ini coidef_ini_
66 # define COIDEF_NumVar coidef_numvar_
67 # define COIDEF_NumCon coidef_numcon_
68 # define COIDEF_NumNZ coidef_numnz_
69 # define COIDEF_NumNlNz coidef_numnlnz_
70 # define COIDEF_Base coidef_base_
71 # define COIDEF_OptDir coidef_optdir_
72 # define COIDEF_ObjCon coidef_objcon_
73 # define COIDEF_ObjVar coidef_objvar_
74 # define COIDEF_ItLim coidef_itlim_
75 # define COIDEF_ErrLim coidef_errlim_
76 # define COIDEF_IniStat coidef_inistat_
77 # define COIDEF_FVincLin coidef_fvinclin_
78 # define COIDEF_FVforAll coidef_fvforall_
79 # define COIDEF_DebugFV coidef_debugfv_
80 # define COIDEF_MaxSup coidef_maxsup_
81 # define COIDEF_Square coidef_square_
82 # define COIDEF_EmptyRow coidef_emptyrow_
83 # define COIDEF_EmptyCol coidef_emptycol_
84 # define COIDEF_Num2D coidef_num2d_
85 # define COIDEF_Debug2D coidef_debug2d_
86 # define COIDEF_DisCont coidef_discont_
87 # define COIDEF_StdOut coidef_stdout_
88 # define COIDEF_ClearM coidef_clearm_
89 # define COIDEF_2DPerturb coidef_2dperturb_
90 # define COIDEF_NDual coidef_ndual_
91
92 # define COIDEF_ResLim coidef_reslim_
93 # define COIDEF_WorkSpace coidef_workspace_
94 # define COIDEF_WorkFactor coidef_workfactor_
95
96 # define COIDEF_ReadMatrix coidef_readmatrix_
97 # define COIDEF_FDEval coidef_fdeval_
98 # define COIDEF_Status coidef_status_
99 # define COIDEF_Solution coidef_solution_
100 # define COIDEF_Message coidef_message_
101 # define COIDEF_ErrMsg coidef_errmsg_
102 # define COIDEF_Progress coidef_progress_
103 # define COIDEF_Optfile coidef_optfile_
104 # define COIDEF_Option coidef_option_
105 # define COIDEF_TriOrd coidef_triord_
106 # define COIDEF_FDInterval coidef_fdinterval_
107 # define COIDEF_2DDir coidef_2ddir_
108 # define COIDEF_2DDirLag coidef_2ddirlag_
109 # define COIDEF_2DLagr coidef_2dlagr_
110 # define COIDEF_SRFile coidef_srfile_
111 # define COIDEF_DualBnd coidef_dualbnd_
112
113 # define COIDEF_UsrMem coidef_usrmem_
114 # define COIDEF_WorkMem coidef_workmem_
115
116 # define COIGET_MaxUsed coiget_maxused_
117 # define COIGET_CurUsed coiget_curused_
118
119 # define COI_Solve coi_solve_
120 # define COI_MemEst coi_memest_
121 # define COI_Version coi_version_
122
123 # define COI_ADDRESSOF coi_addressof_
124 # define CALL_READMATRIX call_readmatrix_
125 # define CALL_FDEVAL call_fdeval_
126 # define CALL_STATUS call_status_
127 # define CALL_SOLUTION call_solution_
128 # define CALL_MESSAGE call_message_
129 # define CALL_PROGRESS call_progress_
130 # define CALL_OPTFILE call_optfile_
131 # define CALL_OPTION call_option_
132 # define CALL_ERRMSG call_errmsg_
133 # define CALL_TRIORD call_triord_
134 # define CALL_FDINTERVAL call_fdinterval_
135 # define CALL_2DDIR call_2ddir_
136 # define CALL_2DDIRLAG call_2ddirlag_
137 # define CALL_2DLAGR call_2dlagr_
138 # define CALL_SRFILE call_srfile_
139 # define CALL_DUALBND call_dualbnd_
140 # define COEAII coeaii_
141 # define COEAI coeai_
142
143 #elif defined(FNAME_LCASE_NODECOR) /* fortran names: lower case, no _ */
144 # define COIDEF_Size coidef_size
145 # define COIDEF_Ini coidef_ini
146 # define COIDEF_NumVar coidef_numvar
147 # define COIDEF_NumCon coidef_numcon
148 # define COIDEF_NumNZ coidef_numnz
149 # define COIDEF_NumNlNz coidef_numnlnz
150 # define COIDEF_Base coidef_base
151 # define COIDEF_OptDir coidef_optdir
152 # define COIDEF_ObjCon coidef_objcon
153 # define COIDEF_ObjVar coidef_objvar
154 # define COIDEF_ItLim coidef_itlim
155 # define COIDEF_ErrLim coidef_errlim
156 # define COIDEF_IniStat coidef_inistat
157 # define COIDEF_FVincLin coidef_fvinclin
158 # define COIDEF_FVforAll coidef_fvforall
159 # define COIDEF_DebugFV coidef_debugfv
160 # define COIDEF_MaxSup coidef_maxsup
161 # define COIDEF_Square coidef_square
162 # define COIDEF_EmptyRow coidef_emptyrow
163 # define COIDEF_EmptyCol coidef_emptycol
164 # define COIDEF_Num2D coidef_num2d
165 # define COIDEF_Debug2D coidef_debug2d
166 # define COIDEF_DisCont coidef_discont
167 # define COIDEF_StdOut coidef_stdout
168 # define COIDEF_ClearM coidef_clearm
169 # define COIDEF_2DPerturb coidef_2dperturb
170 # define COIDEF_NDual coidef_ndual
171
172 # define COIDEF_ResLim coidef_reslim
173 # define COIDEF_WorkSpace coidef_workspace
174 # define COIDEF_WorkFactor coidef_workfactor
175
176 # define COIDEF_ReadMatrix coidef_readmatrix
177 # define COIDEF_FDEval coidef_fdeval
178 # define COIDEF_Status coidef_status
179 # define COIDEF_Solution coidef_solution
180 # define COIDEF_Message coidef_message
181 # define COIDEF_ErrMsg coidef_errmsg
182 # define COIDEF_Progress coidef_progress
183 # define COIDEF_Optfile coidef_optfile
184 # define COIDEF_Option coidef_option
185 # define COIDEF_TriOrd coidef_triord
186 # define COIDEF_FDInterval coidef_fdinterval
187 # define COIDEF_2DDir coidef_2ddir
188 # define COIDEF_2DDirLag coidef_2ddirlag
189 # define COIDEF_2DLagr coidef_2dlagr
190 # define COIDEF_SRFile coidef_srfile
191 # define COIDEF_DualBnd coidef_dualbnd
192
193 # define COIDEF_UsrMem coidef_usrmem
194 # define COIDEF_WorkMem coidef_workmem
195
196 # define COIGET_MaxUsed coiget_maxused
197 # define COIGET_CurUsed coiget_curused
198
199 # define COI_Solve coi_solve
200 # define COI_MemEst coi_memest
201 # define COI_Version coi_version
202
203 # define COI_ADDRESSOF coi_addressof
204 # define CALL_READMATRIX call_readmatrix
205 # define CALL_FDEVAL call_fdeval
206 # define CALL_STATUS call_status
207 # define CALL_SOLUTION call_solution
208 # define CALL_MESSAGE call_message
209 # define CALL_PROGRESS call_progress
210 # define CALL_OPTFILE call_optfile
211 # define CALL_OPTION call_option
212 # define CALL_ERRMSG call_errmsg
213 # define CALL_TRIORD call_triord
214 # define CALL_FDINTERVAL call_fdinterval
215 # define CALL_2DDIR call_2ddir
216 # define CALL_2DDIRLAG call_2ddirlag
217 # define CALL_2DLAGR call_2dlagr
218 # define CALL_SRFILE call_srfile
219 # define CALL_DUALBND call_dualbnd
220 # define COEAII coeaii
221 # define COEAI coeai
222
223 #elif defined(FNAME_UCASE_DECOR) /* fortran names: upper case, trailing _ */
224 # define COIDEF_Size COIDEF_SIZE_
225 # define COIDEF_Ini COIDEF_INI_
226 # define COIDEF_NumVar COIDEF_NUMVAR_
227 # define COIDEF_NumCon COIDEF_NUMCON_
228 # define COIDEF_NumNZ COIDEF_NUMNZ_
229 # define COIDEF_NumNlNz COIDEF_NUMNLNZ_
230 # define COIDEF_Base COIDEF_BASE_
231 # define COIDEF_OptDir COIDEF_OPTDIR_
232 # define COIDEF_ObjCon COIDEF_OBJCON_
233 # define COIDEF_ObjVar COIDEF_OBJVAR_
234 # define COIDEF_ItLim COIDEF_ITLIM_
235 # define COIDEF_ErrLim COIDEF_ERRLIM_
236 # define COIDEF_IniStat COIDEF_INISTAT_
237 # define COIDEF_FVincLin COIDEF_FVINCLIN_
238 # define COIDEF_FVforAll COIDEF_FVFORALL_
239 # define COIDEF_DebugFV COIDEF_DEBUGFV_
240 # define COIDEF_MaxSup COIDEF_MAXSUP_
241 # define COIDEF_Square COIDEF_SQUARE_
242 # define COIDEF_EmptyRow COIDEF_EMPTYROW_
243 # define COIDEF_EmptyCol COIDEF_EMPTYCOL_
244 # define COIDEF_Num2D COIDEF_NUM2D_
245 # define COIDEF_Debug2D COIDEF_DEBUG2D_
246 # define COIDEF_DisCont COIDEF_DISCONT_
247 # define COIDEF_StdOut COIDEF_STDOUT_
248 # define COIDEF_ClearM COIDEF_CLEARM_
249 # define COIDEF_2DPerturb COIDEF_2DPERTURB_
250 # define COIDEF_NDual COIDEF_NDUAL_
251
252 # define COIDEF_ResLim COIDEF_RESLIM_
253 # define COIDEF_WorkSpace COIDEF_WORKSPACE_
254 # define COIDEF_WorkFactor COIDEF_WORKFACTOR_
255
256 # define COIDEF_ReadMatrix COIDEF_READMATRIX_
257 # define COIDEF_FDEval COIDEF_FDEVAL_
258 # define COIDEF_Status COIDEF_STATUS_
259 # define COIDEF_Solution COIDEF_SOLUTION_
260 # define COIDEF_Message COIDEF_MESSAGE_
261 # define COIDEF_ErrMsg COIDEF_ERRMSG_
262 # define COIDEF_Progress COIDEF_PROGRESS_
263 # define COIDEF_Optfile COIDEF_OPTFILE_
264 # define COIDEF_Option COIDEF_OPTION_
265 # define COIDEF_TriOrd COIDEF_TRIORD_
266 # define COIDEF_FDInterval COIDEF_FDINTERVAL_
267 # define COIDEF_2DDir COIDEF_2DDIR_
268 # define COIDEF_2DDirLag COIDEF_2DDIRLAG_
269 # define COIDEF_2DLagr COIDEF_2DLAGR_
270 # define COIDEF_SRFile COIDEF_SRFILE_
271 # define COIDEF_DualBnd COIDEF_DUALBND_
272
273 # define COIDEF_UsrMem COIDEF_USRMEM_
274 # define COIDEF_WorkMem COIDEF_WORKMEM_
275
276 # define COIGET_MaxUsed COIGET_MAXUSED_
277 # define COIGET_CurUsed COIGET_CURUSED_
278
279 # define COI_Solve COI_SOLVE_
280 # define COI_MemEst COI_MEMEST_
281 # define COI_Version COI_VERSION_
282
283 # define COI_ADDRESSOF COI_ADDRESSOF_
284 # define CALL_READMATRIX CALL_READMATRIX_
285 # define CALL_FDEVAL CALL_FDEVAL_
286 # define CALL_STATUS CALL_STATUS_
287 # define CALL_SOLUTION CALL_SOLUTION_
288 # define CALL_MESSAGE CALL_MESSAGE_
289 # define CALL_PROGRESS CALL_PROGRESS_
290 # define CALL_OPTFILE CALL_OPTFILE_
291 # define CALL_OPTION CALL_OPTION_
292 # define CALL_ERRMSG CALL_ERRMSG_
293 # define CALL_TRIORD CALL_TRIORD_
294 # define CALL_FDINTERVAL CALL_FDINTERVAL_
295 # define CALL_2DDIR CALL_2DDIR_
296 # define CALL_2DDIRLAG CALL_2DDIRLAG_
297 # define CALL_2DLAGR CALL_2DLAGR_
298 # define CALL_SRFILE CALL_SRFILE_
299 # define CALL_DUALBND CALL_DUALBND_
300 # define COEAII COEAII_
301 # define COEAI COEAI_
302
303 #elif defined(FNAME_UCASE_NODECOR) /* fortran names: upper case, no _ */
304 # define COIDEF_Size COIDEF_SIZE
305 # define COIDEF_Ini COIDEF_INI
306 # define COIDEF_NumVar COIDEF_NUMVAR
307 # define COIDEF_NumCon COIDEF_NUMCON
308 # define COIDEF_NumNZ COIDEF_NUMNZ
309 # define COIDEF_NumNlNz COIDEF_NUMNLNZ
310 # define COIDEF_Base COIDEF_BASE
311 # define COIDEF_OptDir COIDEF_OPTDIR
312 # define COIDEF_ObjCon COIDEF_OBJCON
313 # define COIDEF_ObjVar COIDEF_OBJVAR
314 # define COIDEF_ItLim COIDEF_ITLIM
315 # define COIDEF_ErrLim COIDEF_ERRLIM
316 # define COIDEF_IniStat COIDEF_INISTAT
317 # define COIDEF_FVincLin COIDEF_FVINCLIN
318 # define COIDEF_FVforAll COIDEF_FVFORALL
319 # define COIDEF_DebugFV COIDEF_DEBUGFV
320 # define COIDEF_MaxSup COIDEF_MAXSUP
321 # define COIDEF_Square COIDEF_SQUARE
322 # define COIDEF_EmptyRow COIDEF_EMPTYROW
323 # define COIDEF_EmptyCol COIDEF_EMPTYCOL
324 # define COIDEF_Num2D COIDEF_NUM2D
325 # define COIDEF_Debug2D COIDEF_DEBUG2D
326 # define COIDEF_DisCont COIDEF_DISCONT
327 # define COIDEF_StdOut COIDEF_STDOUT
328 # define COIDEF_ClearM COIDEF_CLEARM
329 # define COIDEF_2DPerturb COIDEF_2DPERTURB
330 # define COIDEF_NDual COIDEF_NDUAL
331
332 # define COIDEF_ResLim COIDEF_RESLIM
333 # define COIDEF_WorkSpace COIDEF_WORKSPACE
334 # define COIDEF_WorkFactor COIDEF_WORKFACTOR
335
336 # define COIDEF_ReadMatrix COIDEF_READMATRIX
337 # define COIDEF_FDEval COIDEF_FDEVAL
338 # define COIDEF_Status COIDEF_STATUS
339 # define COIDEF_Solution COIDEF_SOLUTION
340 # define COIDEF_Message COIDEF_MESSAGE
341 # define COIDEF_ErrMsg COIDEF_ERRMSG
342 # define COIDEF_Progress COIDEF_PROGRESS
343 # define COIDEF_Optfile COIDEF_OPTFILE
344 # define COIDEF_Option COIDEF_OPTION
345 # define COIDEF_TriOrd COIDEF_TRIORD
346 # define COIDEF_FDInterval COIDEF_FDINTERVAL
347 # define COIDEF_2DDir COIDEF_2DDIR
348 # define COIDEF_2DDirLag COIDEF_2DDIRLAG
349 # define COIDEF_2DLagr COIDEF_2DLAGR
350 # define COIDEF_SRFile COIDEF_SRFILE
351 # define COIDEF_DualBnd COIDEF_DUALBND
352
353 # define COIDEF_UsrMem COIDEF_USRMEM
354 # define COIDEF_WorkMem COIDEF_WORKMEM
355
356 # define COIGET_MaxUsed COIGET_MAXUSED
357 # define COIGET_CurUsed COIGET_CURUSED
358
359 # define COI_Solve COI_SOLVE
360 # define COI_MemEst COI_MEMEST
361 # define COI_Version COI_VERSION
362
363 # define COI_ADDRESSOF COI_ADDRESSOF
364 # define CALL_READMATRIX CALL_READMATRIX
365 # define CALL_FDEVAL CALL_FDEVAL
366 # define CALL_STATUS CALL_STATUS
367 # define CALL_SOLUTION CALL_SOLUTION
368 # define CALL_MESSAGE CALL_MESSAGE
369 # define CALL_PROGRESS CALL_PROGRESS
370 # define CALL_OPTFILE CALL_OPTFILE
371 # define CALL_OPTION CALL_OPTION
372 # define CALL_ERRMSG CALL_ERRMSG
373 # define CALL_TRIORD CALL_TRIORD
374 # define CALL_FDINTERVAL CALL_FDINTERVAL
375 # define CALL_2DDIR CALL_2DDIR
376 # define CALL_2DDIRLAG CALL_2DDIRLAG
377 # define CALL_2DLAGR CALL_2DLAGR
378 # define CALL_SRFILE CALL_SRFILE
379 # define CALL_DUALBND CALL_DUALBND
380 # define COEAII COEAII
381 # define COEAI COEAI
382
383 #elif defined(FNAME_UCASE_PREDECOR) /* fortran names: upper case, no _ */
384 # define COIDEF_Size _COIDEF_SIZE
385 # define COIDEF_Ini _COIDEF_INI
386 # define COIDEF_NumVar _COIDEF_NUMVAR
387 # define COIDEF_NumCon _COIDEF_NUMCON
388 # define COIDEF_NumNZ _COIDEF_NUMNZ
389 # define COIDEF_NumNlNz _COIDEF_NUMNLNZ
390 # define COIDEF_Base _COIDEF_BASE
391 # define COIDEF_OptDir _COIDEF_OPTDIR
392 # define COIDEF_ObjCon _COIDEF_OBJCON
393 # define COIDEF_ObjVar _COIDEF_OBJVAR
394 # define COIDEF_ItLim _COIDEF_ITLIM
395 # define COIDEF_ErrLim _COIDEF_ERRLIM
396 # define COIDEF_IniStat _COIDEF_INISTAT
397 # define COIDEF_FVincLin _COIDEF_FVINCLIN
398 # define COIDEF_FVforAll _COIDEF_FVFORALL
399 # define COIDEF_DebugFV _COIDEF_DEBUGFV
400 # define COIDEF_MaxSup _COIDEF_MAXSUP
401 # define COIDEF_Square _COIDEF_SQUARE
402 # define COIDEF_EmptyRow _COIDEF_EMPTYROW
403 # define COIDEF_EmptyCol _COIDEF_EMPTYCOL
404 # define COIDEF_Num2D _COIDEF_NUM2D
405 # define COIDEF_Debug2D _COIDEF_DEBUG2D
406 # define COIDEF_DisCont _COIDEF_DISCONT
407 # define COIDEF_StdOut _COIDEF_STDOUT
408 # define COIDEF_ClearM _COIDEF_CLEARM
409 # define COIDEF_2DPerturb _COIDEF_2DPERTURB
410 # define COIDEF_NDual _COIDEF_NDUAL
411
412 # define COIDEF_ResLim _COIDEF_RESLIM
413 # define COIDEF_WorkSpace _COIDEF_WORKSPACE
414 # define COIDEF_WorkFactor _COIDEF_WORKFACTOR
415
416 # define COIDEF_ReadMatrix _COIDEF_READMATRIX
417 # define COIDEF_FDEval _COIDEF_FDEVAL
418 # define COIDEF_Status _COIDEF_STATUS
419 # define COIDEF_Solution _COIDEF_SOLUTION
420 # define COIDEF_Message _COIDEF_MESSAGE
421 # define COIDEF_ErrMsg _COIDEF_ERRMSG
422 # define COIDEF_Progress _COIDEF_PROGRESS
423 # define COIDEF_Optfile _COIDEF_OPTFILE
424 # define COIDEF_Option _COIDEF_OPTION
425 # define COIDEF_TriOrd _COIDEF_TRIORD
426 # define COIDEF_FDInterval _COIDEF_FDINTERVAL
427 # define COIDEF_2DDir _COIDEF_2DDIR
428 # define COIDEF_2DDirLag _COIDEF_2DDIRLAG
429 # define COIDEF_2DLagr _COIDEF_2DLAGR
430 # define COIDEF_SRFile _COIDEF_SRFILE
431 # define COIDEF_DualBnd _COIDEF_DUALBND
432
433 # define COIDEF_UsrMem _COIDEF_USRMEM
434 # define COIDEF_WorkMem _COIDEF_WORKMEM
435
436 # define COIGET_MaxUsed _COIGET_MAXUSED
437 # define COIGET_CurUsed _COIGET_CURUSED
438
439 # define COI_Solve _COI_SOLVE
440 # define COI_MemEst _COI_MEMEST
441 # define COI_Version _COI_VERSION
442
443 # define COI_ADDRESSOF _COI_ADDRESSOF
444 # define CALL_READMATRIX _CALL_READMATRIX
445 # define CALL_FDEVAL _CALL_FDEVAL
446 # define CALL_STATUS _CALL_STATUS
447 # define CALL_SOLUTION _CALL_SOLUTION
448 # define CALL_MESSAGE _CALL_MESSAGE
449 # define CALL_PROGRESS _CALL_PROGRESS
450 # define CALL_OPTFILE _CALL_OPTFILE
451 # define CALL_OPTION _CALL_OPTION
452 # define CALL_ERRMSG _CALL_ERRMSG
453 # define CALL_TRIORD _CALL_TRIORD
454 # define CALL_FDINTERVAL _CALL_FDINTERVAL
455 # define CALL_2DDIR _CALL_2DDIR
456 # define CALL_2DDIRLAG _CALL_2DDIRLAG
457 # define CALL_2DLAGR _CALL_2DLAGR
458 # define CALL_SRFILE _CALL_SRFILE
459 # define CALL_DUALBND _CALL_DUALBND
460 # define COEAII _COEAII
461 # define COEAI _COEAI
462
463 #else
464 #error "No compile define for fortran naming convention"
465 No_compile_define_for_fortran_naming_convention;
466 #endif
467
468 extern void COI_CALL COEAI( int* Lwork, double* Work, int* CntVect );
469
470 extern int COI_CALL COIDEF_Size ( );
471 extern int COI_CALL COIDEF_Ini ( int* );
472 extern int COI_CALL COIDEF_NumVar ( int*, int* );
473 extern int COI_CALL COIDEF_NumCon ( int*, int* );
474 extern int COI_CALL COIDEF_NumNZ ( int*, int* );
475 extern int COI_CALL COIDEF_NumNlNz ( int*, int* );
476 extern int COI_CALL COIDEF_Base ( int*, int* );
477 extern int COI_CALL COIDEF_OptDir ( int*, int* );
478 extern int COI_CALL COIDEF_ObjCon ( int*, int* );
479 extern int COI_CALL COIDEF_ObjVar ( int*, int* );
480 extern int COI_CALL COIDEF_ItLim ( int*, int* );
481 extern int COI_CALL COIDEF_ErrLim ( int*, int* );
482 extern int COI_CALL COIDEF_IniStat ( int*, int* );
483 extern int COI_CALL COIDEF_FVincLin ( int*, int* );
484 extern int COI_CALL COIDEF_FVforAll ( int*, int* );
485 extern int COI_CALL COIDEF_DebugFV ( int*, int* );
486 extern int COI_CALL COIDEF_MaxSup ( int*, int* );
487 extern int COI_CALL COIDEF_Square ( int*, int* );
488 extern int COI_CALL COIDEF_EmptyRow ( int*, int* );
489 extern int COI_CALL COIDEF_EmptyCol ( int*, int* );
490 extern int COI_CALL COIDEF_Num2D ( int*, int* );
491 extern int COI_CALL COIDEF_Debug2D ( int*, int* );
492 extern int COI_CALL COIDEF_DisCont ( int*, int* );
493 extern int COI_CALL COIDEF_StdOut ( int*, int* );
494 extern int COI_CALL COIDEF_ClearM ( int*, int* );
495 extern int COI_CALL COIDEF_2DPerturb ( int*, int* );
496 extern int COI_CALL COIDEF_NDual ( int*, int* );
497
498 extern int COI_CALL COIDEF_ResLim ( int*, double* );
499 extern int COI_CALL COIDEF_WorkSpace ( int*, double* );
500 extern int COI_CALL COIDEF_WorkFactor( int*, double* );
501
502 extern int COI_CALL COIDEF_ReadMatrix( int*, COI_READMATRIX );
503 extern int COI_CALL COIDEF_FDEval ( int*, COI_FDEVAL );
504 extern int COI_CALL COIDEF_Status ( int*, COI_STATUS );
505 extern int COI_CALL COIDEF_Solution ( int*, COI_SOLUTION );
506 extern int COI_CALL COIDEF_Message ( int*, COI_MESSAGE );
507 extern int COI_CALL COIDEF_ErrMsg ( int*, COI_ERRMSG );
508 extern int COI_CALL COIDEF_Progress ( int*, COI_PROGRESS );
509 extern int COI_CALL COIDEF_Optfile ( int*, COI_OPTFILE );
510 extern int COI_CALL COIDEF_Option ( int*, COI_OPTION );
511 extern int COI_CALL COIDEF_TriOrd ( int*, COI_TRIORD );
512 extern int COI_CALL COIDEF_FDInterval( int*, COI_FDINTERVAL );
513 extern int COI_CALL COIDEF_2DDir ( int*, COI_2DDIR );
514 extern int COI_CALL COIDEF_2DDirLag ( int*, COI_2DDIRLAG );
515 extern int COI_CALL COIDEF_2DLagr ( int*, COI_2DLAGR );
516 extern int COI_CALL COIDEF_SRFile ( int*, COI_SRFILE );
517 extern int COI_CALL COIDEF_DualBnd ( int*, COI_DUALBND );
518
519 extern int COI_CALL COIDEF_UsrMem ( int*, double* );
520 extern int COI_CALL COIDEF_WorkMem ( int*, double*, int* );
521
522 extern int COI_CALL COIGET_MaxUsed ( int* );
523 extern int COI_CALL COIGET_CurUsed ( int* );
524
525 extern int COI_CALL COI_Solve ( int* );
526 extern int COI_CALL COI_MemEst ( int*, double*, double* );
527 extern int COI_CALL COI_Version ( float*, char*, int );
528
529 #endif

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22