use_objective: Use Objective

Description Usage Arguments Details

View source: R/ampl.R

Description

Sets an objective function as the current model context

Usage

1
use_objective(ampl, objective)

Arguments

ampl

amplpy.ampl.AMPL object

objective

Character name of the objective function to be solved

Details

Call this function if your model has multiple objectives defined in order to switch between them. This only alters the state of the model environment and doesn't execute the solver.


ruaridhw/r-AMPL documentation built on May 4, 2019, 10:55 a.m.