Package 'Rmosek'

Title: The R to MOSEK Optimization Interface
Description: This is a meta-package designed to support the installation of Rmosek (>= 6.0) and bring the optimization facilities of MOSEK (>= 6.0) to the R-language. The interface supports large-scale optimization of many kinds: Mixed-integer and continuous linear, second-order cone, exponential cone and power cone optimization, as well as continuous semidefinite optimization. Rmosek and the R-language are open-source projects. MOSEK is a proprietary product, but unrestricted trial and academic licenses are available.
Authors: MOSEK ApS
Maintainer: Henrik A. Friberg <[email protected]>
License: LGPL (>= 2.1)
Version: 1.3.5
Built: 2024-10-31 20:51:26 UTC
Source: CRAN

Help Index


Unknown exported objects to be built

Description

Unknown exported objects to be built:

  • mosek

  • mosek_clean

  • mosek_version

  • mosek_read

  • mosek_write

Please use 'Rmosek::mosek_attachbuilder' to complete the installation of Rmosek.

See Also

mosek_attachbuilder


Attach builder functions to the search path (install,update,remove)

Description

This function attach a database to the search path with utilities to manage Rmosek in respect to the system requirement (i.e., MOSEK):

install.rmosek Install Rmosek package.
update.rmosek Update Rmosek package.
remove.rmosek Remove Rmosek package.

These utilities are equivalent to, and accept the same arguments as, install.packages, update.packages and remove.packages, differing only in default argument values and the transmission of Rmosek-specific configuration variables (see details below).

Usage

mosek_attachbuilder(what_mosek_bindir, 
                    pos=2L, name="Rmosek:builder", warn.conflicts=TRUE)

Arguments

what_mosek_bindir

The path to the MOSEK 'bin' directory to build against. Should look like <MSKHOME>/mosek/<MSKVERSION>/tools/platform/<PLATFORM>/bin, where <MSKHOME> is the folder in which the MOSEK Optimization Suite has been installed. If NA, it uses the MOSEK binary directory of the last build (if any). If "", it attaches a generic builder.

pos

Integer specifying position in search() where to attach.

name

Name to use for the attached database. Names starting with package: are reserved for library.

warn.conflicts

Logical. If TRUE, warnings are printed about conflicts from attaching the database, unless that database contains an object .conflicts.OK. A conflict is a function masking a function, or a non-function masking a non-function.

Details

The attached *.rmosek functions (install, update, remove) wrap the corresponding utils::*.packages functions with autoconfigured default argument values:

pkgs = "Rmosek"
repos = "https://download.mosek.com/R/<MOSEKMAJORVER>.<MOSEKMINORVER>"

configuration variables:

MSK_BINDIR MOSEK 'bin' directory.
If empty, autoconfigured from mosek executable on PATH.
MSK_HEADERDIR MOSEK 'h' directory.
If empty, autoconfigured from 'MSK_BINDIR'.
MSK_LIB MOSEK library file.
If empty, autoconfigured from 'MSK_BINDIR'.

and installation styles:

using_pkgbuild Logical. Whether to execute in the 'pkgbuild' environment
as is recommended on Windows to resolve Rtools.
using_sysenv Logical. Whether to transmit configuration variables via
Sys.setenv() as opposed to configure.vars.

Examples

## Not run: 
#
# Build Rmosek for the given MOSEK Optimization Suite.
#
mosek_attachbuilder("<MSKHOME>/mosek/<MSKVERSION>/tools/platform/<PLATFORM>/bin")
install.rmosek()

#
# Update Rmosek for the MOSEK Optimization Suite of the last build (if any).
#
mosek_attachbuilder()    # Note: path is read from packageDescription("Rmosek")
update.rmosek()

#
# Build Rmosek (from offline package file) for the given MOSEK Optimization Suite.
#
mosek_attachbuilder("<MSKHOME>/mosek/<MSKVERSION>/tools/platform/<PLATFORM>/bin")
install.rmosek("<RMOSEKPATH>/Rmosek.tar.gz", repos=NULL)


## End(Not run)