add_constraint_locked_pu: Add locked planning units to a problem

View source: R/add_constraint_locked_planning_units.R

add_constraint_locked_puR Documentation

Add locked planning units to a problem

Description

[Deprecated]

add_constraint_locked_pu() has been replaced by add_constraint_locked_planning_units.

Usage

add_constraint_locked_pu(x, locked_in = NULL, locked_out = NULL)

Arguments

x

A Problem object created with create_problem.

locked_in

Optional locked-in specification. It may be NULL, a column name in the raw planning-unit data, a logical vector, or a vector of planning-unit ids.

locked_out

Optional locked-out specification. It may be NULL, a column name in the raw planning-unit data, a logical vector, or a vector of planning-unit ids.

Value

An updated Problem object in which the planning-unit table contains logical columns locked_in and locked_out.

See Also

add_constraint_locked_planning_units


multiscape documentation built on Oct. 12, 2026, 5:08 p.m.