Add, subtract, multiply, or divide optimization objectives.

# S4 method for class 'Objective,numeric'
e1 + e2

# S4 method for class 'numeric,Objective'
e1 + e2

# S4 method for class 'Minimize,missing'
e1 - e2

# S4 method for class 'Minimize,Minimize'
e1 + e2

# S4 method for class 'Minimize,Maximize'
e1 + e2

# S4 method for class 'Objective,Minimize'
e1 - e2

# S4 method for class 'Objective,Maximize'
e1 - e2

# S4 method for class 'Minimize,Objective'
e1 - e2

# S4 method for class 'Maximize,Objective'
e1 - e2

# S4 method for class 'Objective,numeric'
e1 - e2

# S4 method for class 'numeric,Objective'
e1 - e2

# S4 method for class 'Minimize,numeric'
e1 * e2

# S4 method for class 'Maximize,numeric'
e1 * e2

# S4 method for class 'numeric,Minimize'
e1 * e2

# S4 method for class 'numeric,Maximize'
e1 * e2

# S4 method for class 'Objective,numeric'
e1/e2

# S4 method for class 'Maximize,missing'
e1 - e2

# S4 method for class 'Maximize,Maximize'
e1 + e2

# S4 method for class 'Maximize,Minimize'
e1 + e2

Arguments

e1

The left-hand Minimize, Maximize, or numeric value.

e2

The right-hand Minimize, Maximize, or numeric value.

Value

A Minimize or Maximize object.