xprs_optimize
This function will invoke the suitable optimization routine for an XPRSprob object which holds an already loaded optimization problem. The actual solving behavior is similar to that of optimize. However, this function allows to specify the solution method of the initial LP relaxation via flags and returns the prob object itself, making it suitable for usage with pipes.
xprs_optimize(prob, sflags = "")
prob
|
an XPRSprob object, into which a problem has been loaded already.
|
sflags
|
Flags to pass to the optimization method, which specifies how to solve the initial continuous problem where the MIP entities are relaxed.
|
problemdata <- list() problemdata$A <- matrix(c(1,0,0,1),nrow=2) problemdata$rhs <- c(1,2) problemdata$objcoef <- c(1,2) problemdata$lb <- c(0,0) problemdata$ub <- c(Inf,Inf) problemdata$rowtype <- c("G", "E") prob <- xprs_loadproblemdata(problemdata=problemdata) xprs_optimize(prob)
© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.