Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ROI_plugin_build_equality_constraints

Build Functional Equality Constraints


Description

There exist different forms of functional equality constraints, this function transforms the form used in ROI into the forms commonly used by R optimization solvers.

Usage

ROI_plugin_build_equality_constraints(x, type = c("eq_zero", "eq_rhs"))

Arguments

x

an object of type "OP".

type

an character giving the type of the function to be returned, possible values are "eq_zero" or "eq_rhs". For more information see Details.

Details

There are two types of equality constraints commonly used in R

  1. eq\_zero: h(x) = 0 and

  2. eq\_rhs: h(x) = rhs .

Value

Returns one function, which combines all the functional constraints.

Note

This function only intended for plugin authors.

See Also


ROI

R Optimization Infrastructure

v1.0-0
GPL-3
Authors
Kurt Hornik [aut], David Meyer [aut], Florian Schwendinger [aut], Stefan Theussl [aut, cre], Diethelm Wuertz [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.