Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sybil
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
general
ccb
sybil
Commits
9b45ba2b
Commit
9b45ba2b
authored
Jan 28, 2016
by
Claus Jonathan Fritzemeier
Browse files
Options
Downloads
Patches
Plain Diff
non working maximum total flux
parent
2858972d
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
R/sysBiolAlg_mtfClass.R
+22
-6
22 additions, 6 deletions
R/sysBiolAlg_mtfClass.R
inst/NEWS.Rd
+7
-0
7 additions, 0 deletions
inst/NEWS.Rd
man/sysBiolAlg_mtf-class.Rd
+5
-0
5 additions, 0 deletions
man/sysBiolAlg_mtf-class.Rd
with
34 additions
and
6 deletions
R/sysBiolAlg_mtfClass.R
+
22
−
6
View file @
9b45ba2b
...
...
@@ -47,6 +47,7 @@ setMethod(f = "initialize",
react
=
NULL
,
lb
=
NULL
,
ub
=
NULL
,
costcoefbw
=
NULL
,
costcoeffw
=
NULL
,
lpdir
=
"min"
,
absMAX
=
SYBIL_SETTINGS
(
"MAXIMUM"
),
useNames
=
SYBIL_SETTINGS
(
"USE_NAMES"
),
cnames
=
NULL
,
...
...
@@ -65,6 +66,7 @@ setMethod(f = "initialize",
stopifnot
(
is
(
model
,
"modelorg"
),
is
(
wtobj
,
"numeric"
),
is
(
absMAX
,
"numeric"
))
stopifnot
(
lpdir
%in%
c
(
"min"
,
"max"
))
# If wtobj is longer than 1, mtf algorithm has to run several
# times. In that case, wtobj is not written in the problem
...
...
@@ -102,6 +104,8 @@ setMethod(f = "initialize",
# | | |
# obj 0 | 1 | 1 |
# NOTE: if lpdir == "max" the 2nd and 3rd block
# will be <= instead of >= and signs change.
# ---------------------------------------------
# problem dimensions
...
...
@@ -131,10 +135,18 @@ setMethod(f = "initialize",
fi
<-
c
(
1
:
nc
)
# rows for the delta match matrix
if
(
lpdir
==
"min"
){
diag
(
LHS
[(
nr
+1
)
:
(
nr
+
nc
)
,
1
:
nc
])
<-
1
diag
(
LHS
[(
nr
+1
)
:
(
nr
+
nc
)
,(
nc
+1
)
:
(
2
*
nc
)])
<-
1
diag
(
LHS
[(
nr
+
nc
+1
)
:
(
nr
+2
*
nc
),
1
:
nc
])
<-
-1
diag
(
LHS
[(
nr
+
nc
+1
)
:
(
nr
+2
*
nc
),(
2
*
nc
+1
)
:
(
3
*
nc
)])
<-
1
}
else
{
diag
(
LHS
[(
nr
+1
)
:
(
nr
+
nc
)
,
1
:
nc
])
<-
1
diag
(
LHS
[(
nr
+1
)
:
(
nr
+
nc
)
,(
nc
+1
)
:
(
2
*
nc
)])
<-
-1
diag
(
LHS
[(
nr
+
nc
+1
)
:
(
nr
+2
*
nc
),
1
:
nc
])
<-
-1
diag
(
LHS
[(
nr
+
nc
+1
)
:
(
nr
+2
*
nc
),(
2
*
nc
+1
)
:
(
3
*
nc
)])
<-
1
}
# fix the value of the objective function
LHS
[(
nr
+2
*
nc
+1
),
1
:
nc
]
<-
obj_coef
(
model
)
...
...
@@ -156,7 +168,11 @@ setMethod(f = "initialize",
#rupper <- c(rhs(model), rep(absMAX, 2*nc + 1))
rlower
<-
c
(
rep
(
0
,
nr
),
rep
(
0
,
2
*
nc
),
currmo
)
rupper
<-
c
(
rep
(
0
,
nr
),
rep
(
absMAX
,
2
*
nc
+
1
))
rtype
<-
c
(
rep
(
"E"
,
nr
),
rep
(
"L"
,
2
*
nc
+
1
))
if
(
lpdir
==
"min"
){
rtype
<-
c
(
rep
(
"E"
,
nr
),
rep
(
"L"
,
2
*
nc
),
"L"
)
}
else
{
rtype
<-
c
(
rep
(
"E"
,
nr
),
rep
(
"U"
,
2
*
nc
),
"L"
)
}
# ---------------------------------------------
# objective function
...
...
@@ -252,7 +268,7 @@ setMethod(f = "initialize",
rlb
=
rlower
,
rub
=
rupper
,
rtype
=
rtype
,
lpdir
=
"min"
,
lpdir
=
lpdir
,
ctype
=
NULL
,
cnames
=
colNames
,
rnames
=
rowNames
,
...
...
This diff is collapsed.
Click to expand it.
inst/NEWS.Rd
+
7
−
0
View file @
9b45ba2b
...
...
@@ -6,6 +6,13 @@
\newcommand{\CRANpkg}{\href{http://CRAN.R-project.org/package=#1}{\pkg{#1}}}
\section{Changes in version 1.3.4 2016-01-27}{
\itemize{
\item \code{sysBiolAlg_mtfClass} got option to be used as maximum total
flux, too.
}
}
% ---------------------------------------------------------------------------- %
\section{Changes in version 1.3.3 2015-11-25}{
\itemize{
\item \code{addReact} crashed for irreversible models.
...
...
This diff is collapsed.
Click to expand it.
man/sysBiolAlg_mtf-class.Rd
+
5
−
0
View file @
9b45ba2b
...
...
@@ -111,6 +111,11 @@
values given in \code{costcoeffw}.\cr
Default: \code{NULL}.
}
\item{\code{lpdir}:}{Object of class \code{"character"}
giving the direction of optimization. with \code{max} this class can be
used to optimize maximum total flux. Cavetas: Because of changes in the
linear problem, this cannot be changed later. Default: \code{min}.
}
\item{absMAX}{
A single numerical value used as a maximum value for upper variable
and contraint bounds.\cr
...
...
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