Using constraint programming (CP), we address the taskmapping problem in data-driven macroprogramming for wireless sensor networks (WSNs). A task graph representing the flow of data among tasks assists the application developer in specifying the features of a WSN at a high level of abstraction. A problem that arises in this context is how to map the tasks to nodes in the target network before the deployment of sensors, in order to achieve an energy-efficient WSN. This problem is slightly different from the deployment problem for distributed systems. We take a published formulation of the WSN task-mapping problem solved by mixed integer programming (MIP) solvers, and rewrite it much more naturally as a constraint program, using off-the-shelf CP components. On realistic instances of real-world applications of the problem, we show that our CP model results in significantly better runtimes than the MIP model.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.