Learn R Programming

highs (version 1.10.0-1)

hi_model_set_objective: Set Objective for Highs Model

Description

This function sets the objective for a given Highs model.

Usage

hi_model_set_objective(model, objective)

Value

NULL

Arguments

model

an object of class "highs_model".

objective

a numeric vector giving the objective values to be set for the model.

Examples

Run this code
model <- hi_new_model()
objective <- c(1, 2, 3)
hi_model_set_objective(model, objective)

Run the code above in your browser using DataLab