Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
tmp
OS-2.10.2
Bonmin
src
Algorithms
OaGenerators
BonOAMessages.cpp
Go to the documentation of this file.
1
// (C) Copyright Carnegie Mellon University 2005
2
// All Rights Reserved.
3
// This code is published under the Eclipse Public License.
4
//
5
// Authors :
6
// P. Bonami, Carnegie Mellon University
7
//
8
// Date : 05/26/2005
9
10
11
#include "
BonOAMessages.hpp
"
12
#include <cstring>
13
#include "
BonMsgUtils.hpp
"
14
15
namespace
Bonmin
16
{
17
18
OaMessages::OaMessages
():
19
CoinMessages(
DUMMY_END
)
20
{
21
strcpy(source_,
"OA"
);
22
ADD_MSG
(
FEASIBLE_NLP
,
std_m
, 2,
"Solved NLP in %d iterations, found a feasible solution of value %f."
);
23
ADD_MSG
(
INFEASIBLE_NLP
,
std_m
,2,
"Solved NLP in %d iterations, problem is infeasible in subspace."
);
24
ADD_MSG
(
UPDATE_UB
,
std_m
,1,
"New best feasible of %g found after %g sec and %i iterations."
);
25
ADD_MSG
(
SOLVED_LOCAL_SEARCH
,
std_m
,2,
"Local search solved to optimality in %d nodes and %d lp iterations."
);
26
ADD_MSG
(
LOCAL_SEARCH_ABORT
,
std_m
,2,
"Local search aborted : %d nodes and %d lp iterations."
);
27
ADD_MSG
(
UPDATE_LB
,
std_m
,2,
"Updating lower bound to %g elapsed time %g sec"
);
28
ADD_MSG
(
ABORT
,
std_m
,1,
"%s aborted on %s limit, time spent %g has solution of value %g"
);
29
ADD_MSG
(
OASUCCESS
,
std_m
,1,
"%s converged in %g seconds found solution of value %g (lower bound %g )."
);
30
ADD_MSG
(
OAABORT
,
std_m
,1,
"%s interupted after %g seconds found solution of value %g (lower bound %g )."
);
31
ADD_MSG
(
OA_STATS
,
std_m
,1,
"Performed %i iterations, explored %i branch-and-bound nodes in total"
);
32
ADD_MSG
(
LP_ERROR
,
std_m
,2,
"Error of LP approximation %g"
);
33
ADD_MSG
(
PERIODIC_MSG
,
std_m
,1,
"After %7.1f seconds, %i iterations upper bound %10g, lower bound %10g"
);
34
ADD_MSG
(
FP_DISTANCE
,
std_m
,2,
"NLP solution is %g from MILP sol"
);
35
ADD_MSG
(
FP_MILP_VAL
,
std_m
,2,
"MILP solution has value w.r.t original objective: %10g"
);
36
ADD_MSG
(
FP_MAJOR_ITERATION
,
std_m
,1,
"Major iteration %i ub: %g"
);
37
ADD_MSG
(
FP_MINOR_ITERATION
,
std_m
,1,
"Minor iteration %i ub: %g"
);
38
}
39
40
}
//end namespace Bonmin
Bonmin::LOCAL_SEARCH_ABORT
Definition:
BonOAMessages.hpp:21
Bonmin::ABORT
Definition:
BonOAMessages.hpp:23
Bonmin::FP_MILP_VAL
Definition:
BonOAMessages.hpp:30
Bonmin::OA_STATS
Definition:
BonOAMessages.hpp:26
Bonmin::std_m
int std_m(int n)
Definition:
BonMsgUtils.hpp:10
Bonmin::OAABORT
Definition:
BonOAMessages.hpp:25
Bonmin::UPDATE_LB
Definition:
BonOAMessages.hpp:22
Bonmin::OASUCCESS
Definition:
BonOAMessages.hpp:24
Bonmin::FEASIBLE_NLP
Definition:
BonOAMessages.hpp:17
Bonmin::LP_ERROR
Definition:
BonOAMessages.hpp:27
Bonmin::FP_MAJOR_ITERATION
Definition:
BonOAMessages.hpp:31
Bonmin::FP_DISTANCE
Definition:
BonOAMessages.hpp:29
Bonmin::OaMessages::OaMessages
OaMessages()
Definition:
BonOAMessages.cpp:18
Bonmin::UPDATE_UB
Definition:
BonOAMessages.hpp:19
Bonmin::DUMMY_END
Definition:
BonOAMessages.hpp:33
BonMsgUtils.hpp
BonOAMessages.hpp
Bonmin::FP_MINOR_ITERATION
Definition:
BonOAMessages.hpp:32
ADD_MSG
#define ADD_MSG(Id, Type, Level, MSG)
Definition:
BonMsgUtils.hpp:7
Bonmin::INFEASIBLE_NLP
Definition:
BonOAMessages.hpp:18
Bonmin::SOLVED_LOCAL_SEARCH
Definition:
BonOAMessages.hpp:20
Bonmin::PERIODIC_MSG
Definition:
BonOAMessages.hpp:28
Generated by
1.8.5