| 1 |
// (C) Copyright International Business Machines Corporation 2007 |
| 2 |
// All Rights Reserved. |
| 3 |
// This code is published under the Eclipse Public License. |
| 4 |
// |
| 5 |
// Authors : |
| 6 |
// Pierre Bonami, International Business Machines Corporation |
| 7 |
// |
| 8 |
// Date : 04/15/2007 |
| 9 |
|
| 10 |
#ifndef BonAmplSetup_H |
| 11 |
#define BonAmplSetup_H |
| 12 |
#include "BonBonminSetup.hpp" |
| 13 |
#include "BonAmplInterface.hpp" |
| 14 |
|
| 15 |
namespace Bonmin |
| 16 |
{ |
| 17 |
class BonminAmplSetup: public BonminSetup |
| 18 |
{ |
| 19 |
public: |
| 20 |
/** initialize bonmin with ampl model using the command line arguments.*/ |
| 21 |
void initialize(char **& argv); |
| 22 |
/** initialize bonmin with ampl model using the command line arguments and an existing OsiTMINLPInterface.*/ |
| 23 |
void initialize(AmplInterface &toFill, char **& argv); |
| 24 |
/** initialize bonmin with ampl model using the command line arguments reading options and nl file from strings.*/ |
| 25 |
void initialize(char **& argv, std::string& opt_file_content, std::string& nl_file_content, bool createContinuousSolver /*= false*/); |
| 26 |
/** initialize bonmin with ampl model using the command line arguments and an existing OsiTMINLPInterface reading options and nl file from strings.*/ |
| 27 |
void initialize(AmplInterface &toFill, char **& argv, std::string& opt_file_content, std::string& nl_file_content, bool createContinuousSolver = true); |
| 28 |
/** For Bcp. Initialize the passed OsiTMINLP interface with ampl model using the options and nl files contained in two strings.*/ |
| 29 |
void fillOsiInterface(AmplInterface &toFill, char **& argv, std::string & options, std::string & nl, bool createContinuousSolver = true); |
| 30 |
}; |
| 31 |
} |
| 32 |
#endif |