Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
VIGNET Pierre
cadbiom
Commits
638bcfcb
Commit
638bcfcb
authored
Aug 29, 2019
by
VIGNET Pierre
Browse files
[log] Improve logging
parent
73a805f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py
View file @
638bcfcb
...
...
@@ -932,23 +932,23 @@ class CLUnfolder(object):
if
LOGGER
.
getEffectiveLevel
()
==
DEBUG
:
# final
LOGGER
.
debug
(
"Load new solver !!"
)
LOGGER
.
debug
(
">> final
: "
+
str
(
len
(
self
.
__final_constraints
))
)
LOGGER
.
debug
(
">> final
constraints: %s"
,
len
(
self
.
__final_constraints
))
LOGGER
.
debug
(
str
(
self
.
__final_constraints
))
# trajectory invariant
LOGGER
.
debug
(
">> trajectory inv
: "
+
str
(
len
(
self
.
__invariant_constraints
))
)
LOGGER
.
debug
(
">> trajectory inv
ariant constraints: %s"
,
len
(
self
.
__invariant_constraints
))
LOGGER
.
debug
(
str
(
self
.
__invariant_constraints
))
# trajectory variant
LOGGER
.
debug
(
">> trajectory var
: "
+
str
(
len
(
self
.
__variant_constraints
))
)
LOGGER
.
debug
(
">> trajectory var
iant constraints: %s"
,
len
(
self
.
__variant_constraints
))
LOGGER
.
debug
(
str
(
self
.
__variant_constraints
))
# dynamics
LOGGER
.
debug
(
">> dynamic
s: "
+
str
(
len
(
self
.
__dynamic_constraints
))
)
LOGGER
.
debug
(
">> dynamic
constraints: %s"
,
len
(
self
.
__dynamic_constraints
))
LOGGER
.
debug
(
str
(
self
.
__dynamic_constraints
))
# initial
LOGGER
.
debug
(
">> initial
: "
+
str
(
len
(
self
.
__initial_constraints
))
)
LOGGER
.
debug
(
">> initial
constraints: %s"
,
len
(
self
.
__initial_constraints
))
LOGGER
.
debug
(
str
(
self
.
__initial_constraints
))
...
...
@@ -989,10 +989,10 @@ class CLUnfolder(object):
# self.__nb_clauses = solver.nb_clauses()
if
LOGGER
.
getEffectiveLevel
()
==
DEBUG
:
LOGGER
.
debug
(
"__msolve_constraints :: vvars :
"
+
str
(
vvars
)
)
LOGGER
.
debug
(
"__msolve_constraints :: max_sol :
"
+
str
(
max_sol
)
)
LOGGER
.
debug
(
"__msolve_constraints :: vvars :
%s"
,
vvars
)
LOGGER
.
debug
(
"__msolve_constraints :: max_sol :
%s"
,
max_sol
)
lintsol
=
solver
.
msolve_selected
(
max_sol
,
vvars
)
LOGGER
.
debug
(
"__msolve_constraints :: lintsol :
"
+
str
(
lintsol
)
)
LOGGER
.
debug
(
"__msolve_constraints :: lintsol :
%s"
,
lintsol
)
return
[
RawSolution
(
solint
,
self
)
for
solint
in
lintsol
]
return
tuple
(
RawSolution
(
solint
,
self
)
...
...
@@ -1033,7 +1033,7 @@ class CLUnfolder(object):
@return: list of RawSolution objects
"""
if
LOGGER
.
getEffectiveLevel
()
==
DEBUG
:
LOGGER
.
debug
(
"squery_solve :: vvars :
"
+
str
(
vvars
)
)
LOGGER
.
debug
(
"squery_solve :: vvars :
%s"
,
vvars
)
# initialization
self
.
init_forward_unfolding
()
# horizon adjustment
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment