Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sasa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
verimag
synchrone
sasa
Commits
f217913c
Commit
f217913c
authored
3 years ago
by
erwan
Browse files
Options
Downloads
Patches
Plain Diff
ditto for k-clustering
parent
36815247
No related branches found
No related tags found
No related merge requests found
Pipeline
#90460
failed
3 years ago
Stage: build
Stage: release
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/sasacore/worstInit.ml
+5
-3
5 additions, 3 deletions
lib/sasacore/worstInit.ml
test/k-clustering/config.ml
+13
-2
13 additions, 2 deletions
test/k-clustering/config.ml
with
18 additions
and
5 deletions
lib/sasacore/worstInit.ml
+
5
−
3
View file @
f217913c
(* Time-stamp: <modified the 1
1
/10/2021 (at 16:
38
) by Erwan Jahier> *)
(* Time-stamp: <modified the 1
2
/10/2021 (at 16:
22
) by Erwan Jahier> *)
open
Register
...
...
@@ -213,8 +213,10 @@ let (fchc : out_channel -> ('v SimuState.t -> int) -> 'v SimuState.t -> int
cut
=
(
fun
pn
n
->
if
pn
.
cost
>
n
.
cost
then
(
Printf
.
fprintf
log
"%d: cut a point at depth %d of cost %d < %d
\n
%!"
!
cpt
n
.
d
n
.
cost
pn
.
cost
;
true
)
else
false
);
true
)
else
false
);
}
in
let
rec
run_more
psol
more
=
...
...
This diff is collapsed.
Click to expand it.
test/k-clustering/config.ml
+
13
−
2
View file @
f217913c
...
...
@@ -41,5 +41,16 @@ let (pf: pid list -> (pid -> ('a * ('a neighbor * pid) list)) -> float) =
let
potential
=
Some
pf
let
legitimate
=
None
(* None => only silent configuration are legitimate *)
let
fault
=
None
(* None => the simulation stop once a legitimate configuration is reached *)
let
init_search_utils
=
None
let
fault
=
None
open
State
let
maxi
=
2
*
k
+
1
let
s2n
s
=
[
I
(
0
,
s
.
alpha
,
maxi
)]
let
n2s
nl
s
=
match
nl
with
|
[
I
(
_
,
i
,
_
)]
->
{
s
with
alpha
=
i
}
|
_
->
assert
false
let
init_search_utils
=
Some
(
s2n
,
n2s
)
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