25 int main(
int argc,
char* argv[])
27 CoinError::printErrors_ =
true;
31 retcode =
bcp_main(argc, argv, &user_init);
34 retcode =
bcp_main(argc, argv, &user_init);
41 std::cerr<<E.className()<<
"::"<<E.methodName()
43 <<E.message()<<std::endl;
46 std::cerr<<E.className()<<
"::"<<E.methodName()
48 <<E.message()<<std::endl;
50 catch (Ipopt::OPTION_INVALID &E)
52 std::cerr<<
"Ipopt exception : "<<E.Message()<<std::endl;
55 std::cerr<<
" unrecognized exception"<<std::endl;
68 keys.push_back(make_pair(
BCP_string(
"BM_DisregardPriorities"),
70 keys.push_back(make_pair(
BCP_string(
"BM_PrintBranchingInfo"),
72 keys.push_back(make_pair(
BCP_string(
"BM_UsePseudoCosts"),
74 keys.push_back(make_pair(
BCP_string(
"BM_DecreasingSortInSetupList"),
76 keys.push_back(make_pair(
BCP_string(
"BM_PreferHighCombinationInBranching"),
78 keys.push_back(make_pair(
BCP_string(
"BM_NumNlpFailureMax"),
80 keys.push_back(make_pair(
BCP_string(
"BM_NL_filename"),
82 keys.push_back(make_pair(
BCP_string(
"BM_IpoptParamfile"),
90 set_entry(DisregardPriorities,
false);
91 set_entry(PrintBranchingInfo,
true);
92 set_entry(UsePseudoCosts, 1);
93 set_entry(DecreasingSortInSetupList, 1);
94 set_entry(PreferHighCombinationInBranching, 0);
95 set_entry(NumNlpFailureMax, 5);
96 set_entry(NL_filename,
"");
97 set_entry(IpoptParamfile,
"");
112 const int argnum,
const char *
const * arglist)
118 }
else if (argnum == 1) {
144 printf(
"Stats: #NodesSol = %d #SbSol = %d #Fixed = %d #SbDone = %d SumInd = %d SumPos = %e\n", numberNodeSolves_, numberSbSolves_, numberFixed_, numberStrongBranching_, sumStrongBranchingListIndices_, sumStrongBranchingListPositions_);
void create_keyword_list()
Method for creating the list of keyword looked for in the parameter file.
int main(int argc, char *argv[])
virtual BCP_tm_user * tm_init(BCP_tm_prob &p, const int argnum, const char *const *arglist)
void set_default_entries()
Method for setting the default values for the parameters.
void read_from_arglist(const int argnum, const char *const *arglist)
Simply invoke reading from a stream.
This class is a very simple impelementation of a constant length string.
The BCP_lp_user class is the base class from which the user can derive a problem specific class to be...
int bcp_main(int argc, char *argv[], USER_initialize *user_init)
This is the function the user must invoke when (s)he is ready to turn contrl over to BCP...
Error class to throw exceptions from OsiTMINLPInterface.
virtual BCP_lp_user * lp_init(BCP_lp_prob &p)
virtual BCP_user_pack * packer_init(BCP_user_class *p)
void read_from_file(const char *paramfile)
Simply invoke reading from a stream.
void printError(std::ostream &os)
Print error message.
This parameter indeintifies a single parameter entry.
BCP_parameter_set< BM_par > par
We will throw this error when a problem is not solved.
The BCP_tm_user class is the base class from which the user can derive a problem specific class to be...