Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ttc18
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
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
stgroup
ttc18
Commits
11d5917f
Commit
11d5917f
authored
6 years ago
by
Johannes Mey
Browse files
Options
Downloads
Patches
Plain Diff
add missing call to cleanup
parent
ee628630
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
jastadd-mquat-solver-ilp/src/main/java/de/tudresden/inf/st/mquat/solving/ilp/AbstractILPSolver.java
+5
-1
5 additions, 1 deletion
...tudresden/inf/st/mquat/solving/ilp/AbstractILPSolver.java
with
5 additions
and
1 deletion
jastadd-mquat-solver-ilp/src/main/java/de/tudresden/inf/st/mquat/solving/ilp/AbstractILPSolver.java
+
5
−
1
View file @
11d5917f
...
@@ -65,16 +65,20 @@ public abstract class AbstractILPSolver implements BenchmarkableSolver {
...
@@ -65,16 +65,20 @@ public abstract class AbstractILPSolver implements BenchmarkableSolver {
@Override
@Override
public
synchronized
Solution
solve
(
Root
model
)
throws
SolvingException
{
public
synchronized
Solution
solve
(
Root
model
)
throws
SolvingException
{
reset
();
reset
();
StopWatch
watch
=
StopWatch
.
start
();
if
(
model
.
getNumRequest
()
==
0
)
{
if
(
model
.
getNumRequest
()
==
0
)
{
lastGeneration
=
watch
.
time
(
TimeUnit
.
MILLISECONDS
);
cleanup
(
watch
);
return
Solution
.
emptySolutionOf
(
model
);
return
Solution
.
emptySolutionOf
(
model
);
}
}
StopWatch
watch
=
StopWatch
.
start
();
final
ILP
ilp
=
model
.
getILP
();
final
ILP
ilp
=
model
.
getILP
();
lastGeneration
=
watch
.
time
(
TimeUnit
.
MILLISECONDS
);
lastGeneration
=
watch
.
time
(
TimeUnit
.
MILLISECONDS
);
logger
.
debug
(
"ILP-Generation took {}ms."
,
lastGeneration
);
logger
.
debug
(
"ILP-Generation took {}ms."
,
lastGeneration
);
if
(
ilp
.
hasTimeout
())
{
if
(
ilp
.
hasTimeout
())
{
logger
.
error
(
"ILP-Generation exceeded timeout, message: '{}'"
,
ilp
.
timeoutReason
());
logger
.
error
(
"ILP-Generation exceeded timeout, message: '{}'"
,
ilp
.
timeoutReason
());
cleanup
(
watch
);
return
Solution
.
emptySolutionOf
(
model
);
return
Solution
.
emptySolutionOf
(
model
);
}
}
...
...
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