Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cadbiom
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VIGNET Pierre
cadbiom
Commits
70c909d5
Commit
70c909d5
authored
5 years ago
by
VIGNET Pierre
Browse files
Options
Downloads
Patches
Plain Diff
[lib] CLUnfolder: fix typos
parent
57d24c58
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py
+13
-11
13 additions, 11 deletions
library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py
with
13 additions
and
11 deletions
library/cadbiom/models/clause_constraints/mcl/CLUnfolder.py
+
13
−
11
View file @
70c909d5
...
...
@@ -311,8 +311,8 @@ class CLUnfolder(object):
self
.
__final_constraints
## Variables management ####################################################
def
vars_in_clause
(
self
,
clause
):
"""
Return variables
names
from values in the given clause
def
var
_name
s_in_clause
(
self
,
clause
):
"""
Return
the names of the
variables from values in the given
numeric
clause
(DEBUG never used)
"""
return
[
self
.
get_var_indexed_name
(
var
)
for
var
in
clause
]
...
...
@@ -426,7 +426,7 @@ class CLUnfolder(object):
## Translation from names to num codes #####################################
#
t
he translation depends on the shift direction
#
# T
he translation depends on the shift direction
def
__forward_code
(
self
,
clause
):
"""
(deprecated, directly included in C++ module: forward_init_dynamic())
...
...
@@ -527,10 +527,14 @@ class CLUnfolder(object):
"""
Dynamics initialisations.
Set dynamic constraints for a forward one step: X1 = f(X0)
Numerically code
a
clause with the numeric code found in
Numerically code clause
s
with the numeric code
s
found in
self.__var_code_table for a base variable x,
and numeric_code + shift_step for x
'
variable integer coding increases
in futur steps
in future steps.
__dynamic_constraints is a list of lists of numeric clauses (lists of ints)
Each sublist of __dynamic_constraints corresponds to a step in the unfolder;
the last step is the last element.
.. note:: Called by init_forward_unfolding()
...
...
@@ -911,10 +915,9 @@ class CLUnfolder(object):
## Whole initialisations ###################################################
def
init_forward_unfolding
(
self
):
"""
initialisation before generating constraints - forward trajectory
"""
Initialisation before generating constraints - forward trajectory
Called at the begining of squery_is_satisfied and squery_solve
Called at the begining of squery_is_satisfied
()
and squery_solve
()
"""
self
.
__shift_direction
=
'
FORWARD
'
self
.
__current_step
=
1
...
...
@@ -935,8 +938,8 @@ class CLUnfolder(object):
def
init_backward_unfolding
(
self
):
"""
Never used (and backward not implemented in __init_variant_constraints_0)
initialisation before generating constraints - backward trajectory
"""
Initialisation before generating constraints - backward trajectory
Never used (and backward not implemented in __init_variant_constraints_0)
"""
self
.
__shift_direction
=
'
BACKWARD
'
self
.
__current_step
=
0
...
...
@@ -1055,7 +1058,6 @@ class CLUnfolder(object):
return
tuple
(
RawSolution
(
solint
,
self
)
for
solint
in
solver
.
msolve_selected
(
max_sol
,
vvars
))
# dynamic properties
def
squery_is_satisfied
(
self
,
max_step
):
"""
Ask the SAT solver if the query/unfolding is satisfiable in the given
number of steps.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment