Objective-arith function

Arithmetic Operations on Objectives

Arithmetic Operations on Objectives

Add, subtract, multiply, or divide optimization objectives.

## S4 method for signature 'Objective,numeric' e1 + e2 ## S4 method for signature 'numeric,Objective' e1 + e2 ## S4 method for signature 'Minimize,missing' e1 - e2 ## S4 method for signature 'Minimize,Minimize' e1 + e2 ## S4 method for signature 'Minimize,Maximize' e1 + e2 ## S4 method for signature 'Objective,Minimize' e1 - e2 ## S4 method for signature 'Objective,Maximize' e1 - e2 ## S4 method for signature 'Minimize,Objective' e1 - e2 ## S4 method for signature 'Maximize,Objective' e1 - e2 ## S4 method for signature 'Objective,numeric' e1 - e2 ## S4 method for signature 'numeric,Objective' e1 - e2 ## S4 method for signature 'Minimize,numeric' e1 * e2 ## S4 method for signature 'Maximize,numeric' e1 * e2 ## S4 method for signature 'numeric,Minimize' e1 * e2 ## S4 method for signature 'numeric,Maximize' e1 * e2 ## S4 method for signature 'Objective,numeric' e1 / e2 ## S4 method for signature 'Maximize,missing' e1 - e2 ## S4 method for signature 'Maximize,Maximize' e1 + e2 ## S4 method for signature 'Maximize,Minimize' e1 + e2

Arguments

  • e1: The left-hand Minimize , Maximize , or numeric value.
  • e2: The right-hand Minimize , Maximize , or numeric value.

Returns

A Minimize or Maximize object.

  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07