Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pmtool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Merge Requests
0
Merge Requests
0
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
EYRAUD-DUBOIS Lionel
pmtool
Commits
059c20bb
Commit
059c20bb
authored
Feb 12, 2019
by
EYRAUD-DUBOIS Lionel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgotten files
parent
d280bd58
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
59 additions
and
0 deletions
+59
-0
bounds/CriticalPath.cpp
bounds/CriticalPath.cpp
+15
-0
include/CriticalPath.h
include/CriticalPath.h
+17
-0
include/IndepDualGeneric.h
include/IndepDualGeneric.h
+27
-0
No files found.
bounds/CriticalPath.cpp
0 → 100644
View file @
059c20bb
#include <vector>
#include "algorithm.h"
#include "CriticalPath.h"
#include "util.h"
using
namespace
std
;
CriticalPath
::
CriticalPath
(
const
AlgOptions
&
options
)
{
}
double
CriticalPath
::
compute
(
Instance
&
ins
)
{
vector
<
double
>
ranks
=
ins
.
computeMinRank
();
return
getMax
(
ranks
);
}
include/CriticalPath.h
0 → 100644
View file @
059c20bb
#ifndef CRITICALPATH_H
#define CRITICALPATH_H
#include "algorithm.h"
class
CriticalPath
:
public
Bound
{
public:
CriticalPath
(
const
AlgOptions
&
options
);
double
compute
(
Instance
&
ins
);
std
::
string
name
()
{
return
"cp"
;
};
};
#endif
include/IndepDualGeneric.h
0 → 100644
View file @
059c20bb
#ifndef INDEPDUALGENERIC_H
#define INDEPDUALGENERIC_H
#include "IndepAllocator.h"
#include "instance.h"
#include <vector>
extern
double
lowerBoundTwoResource
(
Instance
&
ins
,
std
::
vector
<
int
>
taskSet
,
double
CPUload
=
0
,
double
GPUload
=
0
);
class
IndepDualGeneric
:
public
IndepAllocator
{
protected:
virtual
double
tryGuess
(
Instance
&
,
std
::
vector
<
int
>
taskSet
,
std
::
vector
<
double
>&
loads
,
double
maxlen
,
IndepResult
&
result
,
bool
getResult
)
=
0
;
double
epsilon
=
0.01
;
public:
IndepDualGeneric
(
const
AlgOptions
&
opt
);
IndepResult
compute
(
Instance
&
,
std
::
vector
<
int
>
&
taskSet
,
std
::
vector
<
double
>
&
loads
);
};
#endif
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