compute_solution_cost: Compute cost of given solution vector of PUs to include

compute_solution_costR Documentation

Compute cost of given solution vector of PUs to include

Description

Given a set of planning units to include in a solution, compute the total cost for that set.

Usage

compute_solution_cost(PU_set_to_test, PU_costs)

Arguments

PU_set_to_test

integer vector of planning unit IDs where each ID specifies a planning unit to include in the set to be tested

PU_costs

numeric vector of planning unit costs

Value

Returns numeric cost of the given solution


langfob/bdpg documentation built on Dec. 8, 2022, 5:33 a.m.