Skip to contents

An object representing a restopt problem solution. It is basically a SpatRaster with a few metadata attributes added.

Usage

restopt_solution(restopt_problem, solution_raster, metadata, id_solution = 1)

Arguments

restopt_problem

restopt_problem() Reference to the problem corresponding to this solution.

solution_raster

terra::rast() Solution raster.

metadata

list List containing metadata attributes of the solution.

id_solution

integer Identifier of the solution.

Value

A new restoration problem solution (restopt_solution()).