Set direction of optimization.
# S4 method for optObj_clpAPI,character
setObjDir(lp, lpdir)# S4 method for optObj_clpAPI,numeric
setObjDir(lp, lpdir)
# S4 method for optObj_cplexAPI,character
setObjDir(lp, lpdir)
# S4 method for optObj_cplexAPI,integer
setObjDir(lp, lpdir)
# S4 method for optObj_cplexAPI,numeric
setObjDir(lp, lpdir)
# S4 method for optObj_glpkAPI,character
setObjDir(lp, lpdir)
# S4 method for optObj_glpkAPI,integer
setObjDir(lp, lpdir)
# S4 method for optObj_glpkAPI,numeric
setObjDir(lp, lpdir)
# S4 method for optObj_lpSolveAPI,character
setObjDir(lp, lpdir)
# S4 method for optObj_lpSolveAPI,numeric
setObjDir(lp, lpdir)
A single character string, numeric or integer value. Can be set to
"max"
or -1
for maximization, or "min"
or 1
for
minimization. For packages cplexAPI and glpkAPI
it is also
possible to use the corresponding constant given by the package.
signature(lp = "optObj_clpAPI", lpdir = "character")
method to use with package optObj_clpAPI. Set lpdir
to
"max"
for maximization or "min"
for minimization.
signature(lp = "optObj_clpAPI", lpdir = "numeric")
method to use with package optObj_clpAPI. Set lpdir
to
-1
for maximization or 1
for minimization.
signature(lp = "optObj_cplexAPI", lpdir = "character")
method to use with package optObj_cplexAPI. Set lpdir
to
"max"
for maximization or "min"
for minimization.
signature(lp = "optObj_cplexAPI", lpdir = "integer")
method to use with package optObj_cplexAPI. Set lpdir
to
CPX_MAX
for maximization or CPX_MIN
for minimization.
signature(lp = "optObj_cplexAPI", lpdir = "numeric")
method to use with package optObj_cplexAPI. Set lpdir
to
-1
for maximization or 1
for minimization.
signature(lp = "optObj_glpkAPI", lpdir = "character")
method to use with package optObj_glpkAPI. Set lpdir
to
"max"
for maximization or "min"
for minimization.
signature(lp = "optObj_glpkAPI", lpdir = "integer")
method to use with package optObj_glpkAPI. Set lpdir
to
GLP_MAX
for maximization or GLP_MIN
for minimization.
signature(lp = "optObj_glpkAPI", lpdir = "numeric")
method to use with package optObj_glpkAPI. Set lpdir
to
-1
for maximization or 1
for minimization.
signature(lp = "optObj_lpSolveAPI", lpdir = "character")
method to use with package optObj_lpSolveAPI. Set lpdir
to
"max"
for maximization or "min"
for minimization.
signature(lp = "optObj_lpSolveAPI", lpdir = "numeric")
method to use with package optObj_lpSolveAPI. Set lpdir
to
-1
for maximization or 1
for minimization.
Superclass '>optObj
and constructor function
optObj
.