source: trunk/Clp/src/CbcOrClpParam.hpp @ 2371

Last change on this file since 2371 was 2371, checked in by forrest, 5 months ago

more flexibility for sos - also allow more string parameters

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 17.8 KB
Line 
1
2/* $Id: CbcOrClpParam.hpp 2371 2018-11-15 16:13:52Z forrest $ */
3// Copyright (C) 2002, International Business Machines
4// Corporation and others.  All Rights Reserved.
5// This code is licensed under the terms of the Eclipse Public License (EPL).
6
7#ifdef USE_CBCCONFIG
8# include "CbcConfig.h"
9#else
10# include "ClpConfig.h"
11#endif
12
13#ifndef CbcOrClpParam_H
14#define CbcOrClpParam_H
15/**
16   This has parameter handling stuff which can be shared between Cbc and Clp (and Dylp etc).
17
18   This (and .cpp) should be copied so that it is the same in Cbc/Test and Clp/Test.
19   I know this is not elegant but it seems simplest.
20
21   It uses COIN_HAS_CBC for parameters wanted by CBC
22   It uses COIN_HAS_CLP for parameters wanted by CLP (or CBC using CLP)
23   It could use COIN_HAS_DYLP for parameters wanted by DYLP
24   It could use COIN_HAS_DYLP_OR_CLP for parameters wanted by DYLP or CLP etc etc
25
26 */
27class OsiSolverInterface;
28class CbcModel;
29class ClpSimplex;
30/*! \brief Parameter codes
31
32  Parameter type ranges are allocated as follows
33  <ul>
34    <li>   1 -- 100     double parameters
35    <li> 101 -- 200     integer parameters
36    <li> 201 -- 250     string parameters
37    <li> 251 -- 300     cuts etc(string but broken out for clarity)
38    <li> 301 -- 400     `actions'
39  </ul>
40
41  `Actions' do not necessarily invoke an immediate action; it's just that they
42  don't fit neatly into the parameters array.
43
44  This coding scheme is in flux.
45*/
46
47enum CbcOrClpParameterType
48
49{
50     CBC_PARAM_GENERALQUERY = -100,
51     CBC_PARAM_FULLGENERALQUERY,
52
53     CLP_PARAM_DBL_PRIMALTOLERANCE = 1,
54     CLP_PARAM_DBL_DUALTOLERANCE,
55     CLP_PARAM_DBL_TIMELIMIT,
56     CLP_PARAM_DBL_DUALBOUND,
57     CLP_PARAM_DBL_PRIMALWEIGHT,
58     CLP_PARAM_DBL_OBJSCALE,
59     CLP_PARAM_DBL_RHSSCALE,
60     CLP_PARAM_DBL_ZEROTOLERANCE,
61     CLP_PARAM_DBL_PSI,
62
63     CBC_PARAM_DBL_INFEASIBILITYWEIGHT = 51,
64     CBC_PARAM_DBL_CUTOFF,
65     CBC_PARAM_DBL_INTEGERTOLERANCE,
66     CBC_PARAM_DBL_INCREMENT,
67     CBC_PARAM_DBL_ALLOWABLEGAP,
68     CBC_PARAM_DBL_TIMELIMIT_BAB,
69     CBC_PARAM_DBL_GAPRATIO,
70
71     CBC_PARAM_DBL_DJFIX = 81,
72     CBC_PARAM_DBL_TIGHTENFACTOR,
73     CLP_PARAM_DBL_PRESOLVETOLERANCE,
74     CLP_PARAM_DBL_OBJSCALE2,
75     CBC_PARAM_DBL_FAKEINCREMENT,
76     CBC_PARAM_DBL_FAKECUTOFF,
77     CBC_PARAM_DBL_ARTIFICIALCOST,
78     CBC_PARAM_DBL_DEXTRA3,
79     CBC_PARAM_DBL_SMALLBAB,
80     CBC_PARAM_DBL_DEXTRA4,
81     CBC_PARAM_DBL_DEXTRA5,
82
83     CLP_PARAM_INT_SOLVERLOGLEVEL = 101,
84#ifndef COIN_HAS_CBC
85     CLP_PARAM_INT_LOGLEVEL = 101,
86#endif
87     CLP_PARAM_INT_MAXFACTOR,
88     CLP_PARAM_INT_PERTVALUE,
89     CLP_PARAM_INT_MAXITERATION,
90     CLP_PARAM_INT_PRESOLVEPASS,
91     CLP_PARAM_INT_IDIOT,
92     CLP_PARAM_INT_SPRINT,
93     CLP_PARAM_INT_OUTPUTFORMAT,
94     CLP_PARAM_INT_SLPVALUE,
95     CLP_PARAM_INT_PRESOLVEOPTIONS,
96     CLP_PARAM_INT_PRINTOPTIONS,
97     CLP_PARAM_INT_SPECIALOPTIONS,
98     CLP_PARAM_INT_SUBSTITUTION,
99     CLP_PARAM_INT_DUALIZE,
100     CLP_PARAM_INT_VERBOSE,
101     CLP_PARAM_INT_CPP,
102     CLP_PARAM_INT_PROCESSTUNE,
103     CLP_PARAM_INT_USESOLUTION,
104     CLP_PARAM_INT_RANDOMSEED,
105     CLP_PARAM_INT_MORESPECIALOPTIONS,
106     CLP_PARAM_INT_DECOMPOSE_BLOCKS,
107     CLP_PARAM_INT_VECTOR_MODE,
108
109     CBC_PARAM_INT_STRONGBRANCHING = 151,
110     CBC_PARAM_INT_CUTDEPTH,
111     CBC_PARAM_INT_MAXNODES,
112     CBC_PARAM_INT_NUMBERBEFORE,
113     CBC_PARAM_INT_NUMBERANALYZE,
114     CBC_PARAM_INT_MIPOPTIONS,
115     CBC_PARAM_INT_MOREMIPOPTIONS,
116     CBC_PARAM_INT_MAXHOTITS,
117     CBC_PARAM_INT_FPUMPITS,
118     CBC_PARAM_INT_MAXSOLS,
119     CBC_PARAM_INT_FPUMPTUNE,
120     CBC_PARAM_INT_TESTOSI,
121     CBC_PARAM_INT_EXTRA1,
122     CBC_PARAM_INT_EXTRA2,
123     CBC_PARAM_INT_EXTRA3,
124     CBC_PARAM_INT_EXTRA4,
125     CBC_PARAM_INT_DEPTHMINIBAB,
126     CBC_PARAM_INT_CUTPASSINTREE,
127     CBC_PARAM_INT_THREADS,
128     CBC_PARAM_INT_CUTPASS,
129     CBC_PARAM_INT_VUBTRY,
130     CBC_PARAM_INT_DENSE,
131     CBC_PARAM_INT_EXPERIMENT,
132     CBC_PARAM_INT_DIVEOPT,
133     CBC_PARAM_INT_DIVEOPTSOLVES,
134     CBC_PARAM_INT_STRATEGY,
135     CBC_PARAM_INT_SMALLFACT,
136     CBC_PARAM_INT_HOPTIONS,
137     CBC_PARAM_INT_CUTLENGTH,
138     CBC_PARAM_INT_FPUMPTUNE2,
139#ifdef COIN_HAS_CBC
140     CLP_PARAM_INT_LOGLEVEL ,
141#endif
142     CBC_PARAM_INT_MAXSAVEDSOLS,
143     CBC_PARAM_INT_RANDOMSEED,
144     CBC_PARAM_INT_MULTIPLEROOTS,
145     CBC_PARAM_INT_STRONG_STRATEGY,
146     CBC_PARAM_INT_EXTRA_VARIABLES,
147     CBC_PARAM_INT_MAX_SLOW_CUTS,
148     CBC_PARAM_INT_MOREMOREMIPOPTIONS,
149
150     CLP_PARAM_STR_DIRECTION = 201,
151     CLP_PARAM_STR_DUALPIVOT,
152     CLP_PARAM_STR_SCALING,
153     CLP_PARAM_STR_ERRORSALLOWED,
154     CLP_PARAM_STR_KEEPNAMES,
155     CLP_PARAM_STR_SPARSEFACTOR,
156     CLP_PARAM_STR_PRIMALPIVOT,
157     CLP_PARAM_STR_PRESOLVE,
158     CLP_PARAM_STR_CRASH,
159     CLP_PARAM_STR_BIASLU,
160     CLP_PARAM_STR_PERTURBATION,
161     CLP_PARAM_STR_MESSAGES,
162     CLP_PARAM_STR_AUTOSCALE,
163     CLP_PARAM_STR_CHOLESKY,
164     CLP_PARAM_STR_KKT,
165     CLP_PARAM_STR_BARRIERSCALE,
166     CLP_PARAM_STR_GAMMA,
167     CLP_PARAM_STR_CROSSOVER,
168     CLP_PARAM_STR_PFI,
169     CLP_PARAM_STR_INTPRINT,
170     CLP_PARAM_STR_VECTOR,
171     CLP_PARAM_STR_FACTORIZATION,
172     CLP_PARAM_STR_ALLCOMMANDS,
173     CLP_PARAM_STR_TIME_MODE,
174     CLP_PARAM_STR_ABCWANTED,
175     CLP_PARAM_STR_BUFFER_MODE,
176
177     CBC_PARAM_STR_NODESTRATEGY = 301,
178     CBC_PARAM_STR_BRANCHSTRATEGY,
179     CBC_PARAM_STR_CUTSSTRATEGY,
180     CBC_PARAM_STR_HEURISTICSTRATEGY,
181     CBC_PARAM_STR_GOMORYCUTS,
182     CBC_PARAM_STR_PROBINGCUTS,
183     CBC_PARAM_STR_KNAPSACKCUTS,
184     CBC_PARAM_STR_REDSPLITCUTS,
185     CBC_PARAM_STR_ROUNDING,
186     CBC_PARAM_STR_SOLVER,
187     CBC_PARAM_STR_CLIQUECUTS,
188     CBC_PARAM_STR_COSTSTRATEGY,
189     CBC_PARAM_STR_FLOWCUTS,
190     CBC_PARAM_STR_MIXEDCUTS,
191     CBC_PARAM_STR_TWOMIRCUTS,
192     CBC_PARAM_STR_PREPROCESS,
193     CBC_PARAM_STR_FPUMP,
194     CBC_PARAM_STR_GREEDY,
195     CBC_PARAM_STR_COMBINE,
196     CBC_PARAM_STR_PROXIMITY,
197     CBC_PARAM_STR_LOCALTREE,
198     CBC_PARAM_STR_SOS,
199     CBC_PARAM_STR_LANDPCUTS,
200     CBC_PARAM_STR_RINS,
201     CBC_PARAM_STR_RESIDCUTS,
202     CBC_PARAM_STR_RENS,
203     CBC_PARAM_STR_DIVINGS,
204     CBC_PARAM_STR_DIVINGC,
205     CBC_PARAM_STR_DIVINGF,
206     CBC_PARAM_STR_DIVINGG,
207     CBC_PARAM_STR_DIVINGL,
208     CBC_PARAM_STR_DIVINGP,
209     CBC_PARAM_STR_DIVINGV,
210     CBC_PARAM_STR_DINS,
211     CBC_PARAM_STR_PIVOTANDFIX,
212     CBC_PARAM_STR_RANDROUND,
213     CBC_PARAM_STR_NAIVE,
214     CBC_PARAM_STR_ZEROHALFCUTS,
215     CBC_PARAM_STR_CPX,
216     CBC_PARAM_STR_CROSSOVER2,
217     CBC_PARAM_STR_PIVOTANDCOMPLEMENT,
218     CBC_PARAM_STR_VND,
219     CBC_PARAM_STR_LAGOMORYCUTS,
220     CBC_PARAM_STR_LATWOMIRCUTS,
221     CBC_PARAM_STR_REDSPLIT2CUTS,
222     CBC_PARAM_STR_GMICUTS,
223     CBC_PARAM_STR_CUTOFF_CONSTRAINT,
224     CBC_PARAM_STR_DW,
225     CBC_PARAM_STR_ORBITAL,
226     CBC_PARAM_STR_PREPROCNAMES,
227     CBC_PARAM_STR_SOSPRIORITIZE,
228
229     CLP_PARAM_ACTION_DIRECTORY = 401,
230     CLP_PARAM_ACTION_DIRSAMPLE,
231     CLP_PARAM_ACTION_DIRNETLIB,
232     CBC_PARAM_ACTION_DIRMIPLIB,
233     CLP_PARAM_ACTION_IMPORT,
234     CLP_PARAM_ACTION_EXPORT,
235     CLP_PARAM_ACTION_RESTORE,
236     CLP_PARAM_ACTION_SAVE,
237     CLP_PARAM_ACTION_DUALSIMPLEX,
238     CLP_PARAM_ACTION_PRIMALSIMPLEX,
239     CLP_PARAM_ACTION_EITHERSIMPLEX,
240     CLP_PARAM_ACTION_MAXIMIZE,
241     CLP_PARAM_ACTION_MINIMIZE,
242     CLP_PARAM_ACTION_EXIT,
243     CLP_PARAM_ACTION_STDIN,
244     CLP_PARAM_ACTION_UNITTEST,
245     CLP_PARAM_ACTION_NETLIB_EITHER,
246     CLP_PARAM_ACTION_NETLIB_DUAL,
247     CLP_PARAM_ACTION_NETLIB_PRIMAL,
248     CLP_PARAM_ACTION_SOLUTION,
249     CLP_PARAM_ACTION_SAVESOL,
250     CLP_PARAM_ACTION_TIGHTEN,
251     CLP_PARAM_ACTION_FAKEBOUND,
252     CLP_PARAM_ACTION_HELP,
253     CLP_PARAM_ACTION_PLUSMINUS,
254     CLP_PARAM_ACTION_NETWORK,
255     CLP_PARAM_ACTION_ALLSLACK,
256     CLP_PARAM_ACTION_REVERSE,
257     CLP_PARAM_ACTION_BARRIER,
258     CLP_PARAM_ACTION_NETLIB_BARRIER,
259     CLP_PARAM_ACTION_NETLIB_TUNE,
260     CLP_PARAM_ACTION_REALLY_SCALE,
261     CLP_PARAM_ACTION_BASISIN,
262     CLP_PARAM_ACTION_BASISOUT,
263     CLP_PARAM_ACTION_SOLVECONTINUOUS,
264     CLP_PARAM_ACTION_CLEARCUTS,
265     CLP_PARAM_ACTION_VERSION,
266     CLP_PARAM_ACTION_STATISTICS,
267     CLP_PARAM_ACTION_DEBUG,
268     CLP_PARAM_ACTION_DUMMY,
269     CLP_PARAM_ACTION_PRINTMASK,
270     CLP_PARAM_ACTION_OUTDUPROWS,
271     CLP_PARAM_ACTION_USERCLP,
272     CLP_PARAM_ACTION_MODELIN,
273     CLP_PARAM_ACTION_CSVSTATISTICS,
274     CLP_PARAM_ACTION_STOREDFILE,
275     CLP_PARAM_ACTION_ENVIRONMENT,
276     CLP_PARAM_ACTION_PARAMETRICS,
277     CLP_PARAM_ACTION_GMPL_SOLUTION,
278     CLP_PARAM_ACTION_RESTORESOL,
279
280     CBC_PARAM_ACTION_BAB = 501,
281     CBC_PARAM_ACTION_MIPLIB,
282     CBC_PARAM_ACTION_STRENGTHEN,
283     CBC_PARAM_ACTION_PRIORITYIN,
284     CBC_PARAM_ACTION_MIPSTART,
285     CBC_PARAM_ACTION_USERCBC,
286     CBC_PARAM_ACTION_DOHEURISTIC,
287     CLP_PARAM_ACTION_NEXTBESTSOLUTION,
288
289     CBC_PARAM_NOTUSED_OSLSTUFF = 601,
290     CBC_PARAM_NOTUSED_CBCSTUFF,
291
292     CBC_PARAM_NOTUSED_INVALID = 1000
293} ;
294#include <vector>
295#include <string>
296
297/// Very simple class for setting parameters
298
299class CbcOrClpParam {
300public:
301     /**@name Constructor and destructor */
302     //@{
303     /// Constructors
304     CbcOrClpParam (  );
305     CbcOrClpParam (std::string name, std::string help,
306                    double lower, double upper, CbcOrClpParameterType type, int display = 2);
307     CbcOrClpParam (std::string name, std::string help,
308                    int lower, int upper, CbcOrClpParameterType type, int display = 2);
309     // Other strings will be added by insert
310     CbcOrClpParam (std::string name, std::string help, std::string firstValue,
311                    CbcOrClpParameterType type, int whereUsed = 7, int display = 2);
312     // Action
313     CbcOrClpParam (std::string name, std::string help,
314                    CbcOrClpParameterType type, int whereUsed = 7, int display = 2);
315     /// Copy constructor.
316     CbcOrClpParam(const CbcOrClpParam &);
317     /// Assignment operator. This copies the data
318     CbcOrClpParam & operator=(const CbcOrClpParam & rhs);
319     /// Destructor
320     ~CbcOrClpParam (  );
321     //@}
322
323     /**@name stuff */
324     //@{
325     /// Insert string (only valid for keywords)
326     void append(std::string keyWord);
327     /// Adds one help line
328     void addHelp(std::string keyWord);
329     /// Returns name
330     inline std::string  name(  ) const {
331          return name_;
332     }
333     /// Returns short help
334     inline std::string  shortHelp(  ) const {
335          return shortHelp_;
336     }
337     /// Sets a double parameter (nonzero code if error)
338     int setDoubleParameter(CbcModel & model, double value) ;
339     /// Sets double parameter and returns printable string and error code
340     const char * setDoubleParameterWithMessage ( CbcModel & model, double  value , int & returnCode);
341     /// Gets a double parameter
342     double doubleParameter(CbcModel & model) const;
343     /// Sets a int parameter (nonzero code if error)
344     int setIntParameter(CbcModel & model, int value) ;
345     /// Sets int parameter and returns printable string and error code
346     const char * setIntParameterWithMessage ( CbcModel & model, int value , int & returnCode);
347     /// Gets a int parameter
348     int intParameter(CbcModel & model) const;
349     /// Sets a double parameter (nonzero code if error)
350     int setDoubleParameter(ClpSimplex * model, double value) ;
351     /// Gets a double parameter
352     double doubleParameter(ClpSimplex * model) const;
353     /// Sets double parameter and returns printable string and error code
354     const char * setDoubleParameterWithMessage ( ClpSimplex * model, double  value , int & returnCode);
355     /// Sets a int parameter (nonzero code if error)
356     int setIntParameter(ClpSimplex * model, int value) ;
357     /// Sets int parameter and returns printable string and error code
358     const char * setIntParameterWithMessage ( ClpSimplex * model, int  value , int & returnCode);
359     /// Gets a int parameter
360     int intParameter(ClpSimplex * model) const;
361     /// Sets a double parameter (nonzero code if error)
362     int setDoubleParameter(OsiSolverInterface * model, double value) ;
363     /// Sets double parameter and returns printable string and error code
364     const char * setDoubleParameterWithMessage ( OsiSolverInterface * model, double  value , int & returnCode);
365     /// Gets a double parameter
366     double doubleParameter(OsiSolverInterface * model) const;
367     /// Sets a int parameter (nonzero code if error)
368     int setIntParameter(OsiSolverInterface * model, int value) ;
369     /// Sets int parameter and returns printable string and error code
370     const char * setIntParameterWithMessage ( OsiSolverInterface * model, int  value , int & returnCode);
371     /// Gets a int parameter
372     int intParameter(OsiSolverInterface * model) const;
373     /// Checks a double parameter (nonzero code if error)
374     int checkDoubleParameter(double value) const;
375     /// Returns name which could match
376     std::string matchName (  ) const;
377     /// Returns length of name for ptinting
378     int lengthMatchName (  ) const;
379     /// Returns parameter option which matches (-1 if none)
380     int parameterOption ( std::string check ) const;
381     /// Prints parameter options
382     void printOptions (  ) const;
383     /// Returns current parameter option
384     inline std::string currentOption (  ) const {
385          return definedKeyWords_[currentKeyWord_];
386     }
387     /// Sets current parameter option
388     void setCurrentOption ( int value , bool printIt = false);
389     /// Sets current parameter option and returns printable string
390     const char * setCurrentOptionWithMessage ( int value );
391     /// Sets current parameter option using string
392     void setCurrentOption (const std::string value );
393     /// Sets current parameter option using string with message
394     const char * setCurrentOptionWithMessage (const std::string value );
395     /// Returns current parameter option position
396     int currentOptionAsInteger (  ) const ;
397     /** Returns current parameter option position
398         but if fake keyword returns a fake value and sets
399         fakeInteger to true value.  If not fake then fakeInteger is -COIN_INT_MAX
400      */
401     int currentOptionAsInteger ( int & fakeInteger ) const;
402     /// Sets int value
403     void setIntValue ( int value );
404     /// Sets int value with message
405     const char * setIntValueWithMessage ( int value );
406     inline int intValue () const {
407          return intValue_;
408     }
409     /// Sets double value
410     void setDoubleValue ( double value );
411     /// Sets double value with message
412     const char * setDoubleValueWithMessage ( double value );
413     inline double doubleValue () const {
414          return doubleValue_;
415     }
416     /// Sets string value
417     void setStringValue ( std::string value );
418     inline std::string stringValue () const {
419          return stringValue_;
420     }
421     /// Returns 1 if matches minimum, 2 if matches less, 0 if not matched
422     int matches (std::string input) const;
423     /// type
424     inline CbcOrClpParameterType type() const {
425          return type_;
426     }
427     /// whether to display
428     inline int displayThis() const {
429          return display_;
430     }
431     /// Set Long help
432     inline void setLonghelp(const std::string help) {
433          longHelp_ = help;
434     }
435     /// Print Long help
436     void printLongHelp() const;
437     /// Print action and string
438     void printString() const;
439     /** 7 if used everywhere,
440         1 - used by clp
441         2 - used by cbc
442         4 - used by ampl
443     */
444     inline int whereUsed() const {
445          return whereUsed_;
446     }
447     /// Gets value of fake keyword
448     inline int fakeKeyWord() const
449     { return fakeKeyWord_;}
450     /// Sets value of fake keyword
451     inline void setFakeKeyWord(int value, int fakeValue)
452     { fakeKeyWord_ = value; fakeValue_ = fakeValue;}
453     /// Sets value of fake keyword to current size of keywords
454     void setFakeKeyWord(int fakeValue);
455
456private:
457     /// gutsOfConstructor
458     void gutsOfConstructor();
459     //@}
460////////////////// data //////////////////
461private:
462
463     /**@name data
464      We might as well throw all type data in - could derive?
465     */
466     //@{
467     // Type see CbcOrClpParameterType
468     CbcOrClpParameterType type_;
469     /// If double == okay
470     double lowerDoubleValue_;
471     double upperDoubleValue_;
472     /// If int == okay
473     int lowerIntValue_;
474     int upperIntValue_;
475     // Length of name
476     unsigned int lengthName_;
477     // Minimum match
478     unsigned int lengthMatch_;
479     /// set of valid strings
480     std::vector<std::string> definedKeyWords_;
481     /// Name
482     std::string name_;
483     /// Short help
484     std::string shortHelp_;
485     /// Long help
486     std::string longHelp_;
487     /// Action
488     CbcOrClpParameterType action_;
489     /// Current keyWord (if a keyword parameter)
490     int currentKeyWord_;
491     /// Display on ?
492     int display_;
493     /// Integer parameter - current value
494     int intValue_;
495     /// Double parameter - current value
496     double doubleValue_;
497     /// String parameter - current value
498     std::string stringValue_;
499     /** 7 if used everywhere,
500         1 - used by clp
501         2 - used by cbc
502         4 - used by ampl
503     */
504     int whereUsed_;
505     /** If >=0 then integers allowed as a fake keyword
506         So minusnnnn would got to -nnnn in currentKeyword_
507         and plusnnnn would go to fakeKeyword_+nnnn
508     */
509     int fakeKeyWord_;
510     /// Return this as main value if an integer
511     int fakeValue_;
512     //@}
513};
514/// Simple read stuff
515std::string CoinReadNextField();
516
517std::string CoinReadGetCommand(int argc, const char *argv[]);
518std::string CoinReadGetString(int argc, const char *argv[]);
519// valid 0 - okay, 1 bad, 2 not there
520int CoinReadGetIntField(int argc, const char *argv[], int * valid);
521double CoinReadGetDoubleField(int argc, const char *argv[], int * valid);
522void CoinReadPrintit(const char * input);
523void setCbcOrClpPrinting(bool yesNo);
524#define CBCMAXPARAMETERS 250
525/*
526  Subroutine to establish the cbc parameter array. See the description of
527  class CbcOrClpParam for details. Pulled from C..Main() for clarity.
528*/
529void establishParams (int &numberParameters, CbcOrClpParam *const parameters);
530// Given a parameter type - returns its number in list
531int whichParam (CbcOrClpParameterType name,
532                int numberParameters, CbcOrClpParam *const parameters);
533// Dump/restore a solution to file
534void saveSolution(const ClpSimplex * lpSolver, std::string fileName);
535void restoreSolution(ClpSimplex * lpSolver, std::string fileName, int mode);
536#endif  /* CbcOrClpParam_H */
Note: See TracBrowser for help on using the repository browser.