Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Lifeware
biocham
Commits
258d214a
Commit
258d214a
authored
Apr 16, 2020
by
SOLIMAN Sylvain
Browse files
Avoid error missing parameters
parent
2197713f
Changes
1
Hide whitespace changes
Inline
Side-by-side
library/examples/modalINF473L/satode.pl
View file @
258d214a
...
...
@@ -43,7 +43,15 @@ sat(N, M) :-
assertz
(
ode_dxdt
(
Aj
,
Aj
*
Kj
)),
big_prod
(
J
,
N
,
0
,
Pj
),
simplify
(
Pj
,
PPj
),
assertz
(
ode_func
(
Kj
,
PPj
))
assertz
(
ode_func
(
Kj
,
PPj
)),
make_name
(
'c'
,
J
,
Cj
),
forall
(
between
(
1
,
N
,
I
),
(
make_name
(
Cj
,
I
,
Cji
),
assertz
(
ode_par
(
Cji
,
0
))
)
)
)
).
...
...
@@ -145,6 +153,7 @@ set_clause_parameter(Clause, N) :-
!,
make_name
(
'c'
,
Clause
,
Cj
),
make_name
(
Cj
,
N
,
Cji
),
retractall
(
ode_par
(
Cji
,
_
)),
assertz
(
ode_par
(
Cji
,
1
)).
set_clause_parameter
(
Clause
,
N
)
:-
...
...
@@ -152,4 +161,5 @@ set_clause_parameter(Clause, N) :-
NN
is
-
N
,
make_name
(
'c'
,
Clause
,
Cj
),
make_name
(
Cj
,
NN
,
Cji
),
retractall
(
ode_par
(
Cji
,
_
)),
assertz
(
ode_par
(
Cji
,
-
1
)).
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment