112
A Mathematical Theory of Co-Design 1 Laboratory for Information and Decision Systems Massachusetts Institute of Technology Andrea Censi Research Scientist, Principal Investigator

A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

AMathematical TheoryofCo-Design

1

LaboratoryforInformationandDecisionSystemsMassachusettsInstituteofTechnology

AndreaCensi

ResearchScientist,PrincipalInvestigator

Page 2: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

About me

‣ Previous experience:- M.Eng in Automation & Robotics at Sapienza University- Ph.D. in Control & Dynamical System at Caltech- Visiting scholar at UZH (with Scaramuzza)

‣ Interests: “Science of embodied autonomy”- perception- control - calibration- learning

‣ Today: formalizing the problem of “co-design”

2

Page 3: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

3

robotic system

languagesinterfaces

rulesprocedures

actuatorssensors

energeticscommunication

computation …

perceptioninferenceplanningcontrol coordination…

environment prior knowledge

data tests

simulations

“robots” “humans” “infrastructure”

hardware software

‣ There is a lack of formal approaches to the design of autonomous robotic systems.

Page 4: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

4

Duckietown: a case study in minimality

Kiva / Amazon Robotics (D’Andrea)

Page 5: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

5

minimize costsubject to teaching goals

camerasonar

sensing

Raspberry PI Arduino

computation

PWM shield

actuation

DC shield

energetics

6000 mAh 10000 mAh

communication

WiFi dongle

access point

RGB LEDs

Page 6: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

6

taskspecification

“automated roboticist”

minimize (resources usage)

subject to (functionality constraints)

optimaldesigncatalogue

of parts

Page 7: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

7

‣ Contribution: a theory of co-design

heterogenous domains

propulsion computation

communication

sensing

energetics…

Page 8: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

8

recursive co-design constraints

‣ Contribution: a theory of co-design

Page 9: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

9

trade-offs of functionality and resources

resourcesfunctionality

‣ Contribution: a theory of co-design

Page 10: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

10

Roomba$900

Roomba 980$200

Page 11: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

11

cleaning robots

storage space

vacuumsmops

functionality

costoperation time

resources

Page 12: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

12

estimation accuracy

platformvelocity

functionality

cost payload

resources

+ PLICP scan matcher [Censi ICRA’07,08,09]

Kuka’s Omnimove MIT/DRAPER (PI: Roy)

Page 13: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

13

distributed / vision

safety performance

functionality

complexityof platform

complexityof infrastructure

resources

centralized / vision distributed / network

Page 14: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

14

‣ The quest for “minimality” in robotics

- actuation/control: Bicchi, Mason, Rodriguez, Goldberg, Wood, Fearing, Ijspeert, …

- sensing: Floreano, Lavalle, O’Kane, Davison, …

- representations/inference: Soatto, Milford, …

Page 15: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

15

“functional requirements”“desired behavior”

“required performance”“specifications”

design problem required

resourcesprovided

functionality

‣ A design problem is a relation between provided functionality and required resources.

Page 16: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

16

design problemprovided

functionalityrequired resources

any partially ordered set any partially ordered set

‣ A design problem is a relation between provided functionality and required resources.

Page 17: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

17

‣ A design problem is a relation between provided functionality and required resources.

choice of battery mass [ g ]

cost [ CHF ]

capacity [ J ]

max current [ A ]

computation [flops]

power [W]speed [rad/s]

torque [Nm]

cost [CHF]

current [A]

mass [kg]

travel distance [m] total cost ownership [CHF]carry payload [kg]

# of missions

Page 18: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

18

‣ Given the functionality to be provided, what are the minimal resources required?

design problemprovided

functionalityrequired resources

‣ Given the resources that are available, what is the maximal functionality that can be provided?

Page 19: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

19

‣ Given the functionality to be provided, what are the minimal resources required?

design problemprovided

functionalityrequired resources

Page 20: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

20

capacity [ J ]mass [ g ]

cost [ CHF ]

‣ Given the functionality to be provided, what are the minimal resources required?

cost [ CHF ]mass [ g ]capacity [ J ]

Page 21: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

21

‣ A design problem can be concretely represented as a map from functionality to “minimal subsets” of resources.

Page 22: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

22

capacity [ J ] mass [ g ]

‣ Monotonicity: increasing the functional requirements does not decrease the resources required.

Page 23: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

23

capacity [ J ] mass [ g ]

‣ Monotonicity: increasing the functional requirements does not decrease the resources required.

capacity [ J ] mass [ g ]

Page 24: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

24

capacity [ J ]

‣ Monotonicity: increasing the functional requirements does not decrease the resources required.

mass [ g ]cost [ CHF ]

capacity [ J ] mass [ g ] cost [ CHF ]

Page 25: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

25

What is the order on trade-off curves?

‣ Monotonicity: increasing the functional requirements does not decrease the resources required.

Page 26: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

‣ Background needed to understand the problem:- posets- minimal elements- antichains - monotonicity- upper sets and upper closure

26

‣ Background not needed:

‣ Background needed to understand the solution:- Scott-continuity - Kleene’s fixed point theorem- order theory: height and width of poset

Page 27: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

27

‣ Poset = a set together with a partial order

IEEE754 floating point

+inf

3.4 × 10+38

1.2 × 10-38

0

-0

-inf

NaN

Page 28: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

28

‣ Poset = a set together with a partial order

# apples # oranges

‣ Example: products of posets

Page 29: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

29

‣ Poset = a set together with a partial order

PWM shield

RGB LEDs

Raspberry PI

intelligent traffic light

mapping car

autonomous car

empty set

communicating car

‣ Example: subsets, ordered by inclusions

Page 30: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

30

‣ Antichain = a set of elements that are mutually incomparable:

not an antichainexample of antichain

Page 31: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

31

‣ Upper closure ( ) of a subset S of a poset P:

upper closure

Page 32: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

32

upper closure

‣ Definition. Choose this partial order for antichains:

add definition of monotonic?

Page 33: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

33

‣ Definition. A design problem is monotone if the map

is monotone.

Page 34: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

34

autonomy

perception planning control

programming

robotics

calculus

logic

computer vision

signal processingchalk

Raspberry PI

blackboard

camera

battery

actuators

equipmentrequired

teaching goals

Page 35: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

35

autonomy

perception planning control

programming

robotics

calculus

logic

computer vision

signal processingchalk

Raspberry PI

blackboard

camera

battery

actuators

equipmentrequired

teaching goals

Page 36: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

36

autonomy

perception planning control

programming

robotics

calculus

logic

computer vision

signal processingchalk

Raspberry PI

blackboard

camera

battery

actuators

equipmentrequired

teaching goals

Page 37: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

37

autonomy

perception planning control

programming

robotics

calculus

logic

computer vision

signal processingchalk

Raspberry PI

blackboard

camera

battery

actuators

equipmentrequired

teaching goals

Page 38: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

38

range-finder

camera

Co-design constraints

Page 39: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

Co-design constraints39

battery

battery must power motor

chassis must carry battery

chassis requires motors to move

chassis motor

budget behaviors

components components must support behaviors

budget must be sufficient

for components

behaviors implementedshould justify the cost

Page 40: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

40

resources required by the first system

functionality provided by the second system

chassis required torque [Nm]

provided torque [Nm]

motor

chassis motor

composition

Page 41: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

41

choice of motor

speed [rad/s]

torque [Nm]

cost [CHF]

max current [A]

mass [kg]

choiceof chassis

payload mass [kg]

max velocity [m/s]

cost [CHF]

required motor velocity [rad/s]required motor torque [Nm]

max current [A]max velocity

cost cost [CHF]

torque

speed

motor mass

extra payload [kg]

abstraction

Page 42: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

✓ monotone

42

‣ Theorem. The interconnection of any number of monotone design problems is monotone.

✓ monotone ✓ monotone

✓ monotone

✓ monotone

Page 43: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

43

✓ Co-design problem = interconnection of design problems

✓ Design problem = monotone relations between functionality and resources.

✓ Interconnection preserves monotonicity.

‣ Semantics as an optimization problem

‣ Solution techniques

functionality resources

A mathematical theory of co-design

Page 44: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

‣ …we need to evaluate the map h for the entire graph.

44

‣ Assuming we know the maps h for the subproblems,

?

Semantics as an optimization problem

Page 45: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

45

for each node i: for each edge (i, j):

chosenby user

objective

constraints

parameters

variables! not convex! not differentiable! not continuous! not even defined on

continuous spaces

to minimize

Semantics as an optimization problem

Page 46: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

46

‣ The problem is loops (“feedback”)

Page 47: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

‣ The problem is loops (“feedback”)

47

✓✓

✓ ✓

✓ ✓

without loops:

with loops: ✓

??

Page 48: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

48

‣ Consider the case of 1 loop, with a scalar variable.

actuation

energetics battery weight

liftpowerrequired

power provided

endurance

Page 49: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

49

‣ Consider the case of 1 loop, with a scalar variable.

Page 50: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

50

‣ Consider the case of 1 loop, with a scalar variable.

Page 51: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

51

‣ Consider the case of 1 loop, with a scalar variable.

“least fixed point” “Kleene’s algorithm”

Page 52: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

52

Banach fixed-point theorem Kleene fixed-point theorem(s)(Knaster-Tarski)

If:

complete partial order-

- monotone

If also:

Scott-continuous-

Then:

-

Then:

-

complete metric space

If:

-

contraction-

Then:

-

-

Page 53: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

53

0

‣ “Start with no resources; increase as needed”.

Page 54: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

54

‣ Everything generalizes to the case with multiple cycles.

Page 55: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

55

actuation

energetics battery weight

liftpowerrequired

endurance

‣ Everything generalizes to the case with multiple cycles.

Page 56: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

56

actuation

energetics battery weight

liftpowerrequired

endurance

cost

cost

profit customer

minimum endurance

‣ Everything generalizes to the case with multiple cycles.

pricetotal cost

Page 57: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

57

‣ Removing 2 edges removes all oriented cycles. (“minimal feedback arc set”)

Page 58: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

58

battery weight

cost

Page 59: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

59

cost × battery weight

Page 60: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

60

Page 61: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

61

Theorem. The set of minimal feasible resources can be obtained as the least fixed point of a monotone function in the space of antichains.

Page 62: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

62

Corollary. The set of minimal solutions can be found using Kleene’s algorithm.

If the iteration diverges, it is a certificate of infeasibility.

Page 63: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

✓ There exists a systematic procedure to solve MCDPsthat finds all minimal solutions, or a certificate of infeasibility.

‣ Surprising because not convex (or differentiable or continuous).

‣ Performance depends on the structure of the graph.

- “thickness” of the edges that must be removed.

63

storage:

number of steps:

complexity of each step:

computation:

animation

Page 64: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

64

A mathematical theory of co-design

✓ Co-design problem = interconnection of design problems

✓ Design problem = monotone relations between functionality and resources.

✓ Interconnection preserves monotonicity.

✓ Semantics as an optimization problem

‣ Formal language and more examples

✓ Solution techniques

Page 65: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

65

travel distance [m] total cost ownership [CHF]carry payload [kg]

# of missions

add citations

Page 66: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

66

computer

strategy

shipping

ae

engineering

customer[km]

[g]

+ 1 W[W]power [W]× 100 W/flops [W]

[m]

endurance [s]km-to-m

[m]

USD*g/lb-to-USD[USD*g/lb]

postage [USD]

× 0.5 USD/lb [USD*g/lb]

[USD][USD]

[USD]

× 10 USD

actuationlift [N]g*m/s²-to-N[g*m/s²]

× 9.81 m/s²[g]

[g] [g]

battery

capacity [J]

[W]

[W]

[N]

[J]

cost [USD][g]

power [W]cost [USD]

maintenance

mass [g][g]

[g]

[USD]

[W]

[USD]

[g*m/s²]

[USD][USD]

ships [g]

[W]

[W]

[W]

perception

velocity [m/s]

sensor

fov []framerate [Hz]

resolution [pixels/deg]

computation [flops]

[kg]

velocity [m/s]endurance [s]

power [W]

[W]

g-to-kg[kg]

velocity [m/s]velocity [m/s]

[USD]

[][Hz]

[pixels/deg]

computation [flops]

budget [USD]

[km]

[g]

travel distance [m] total cost ownership [CHF]carry payload [kg]

# of missions

Page 67: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

67

‣ MCDPL: A user-friendly language to describe MCDPs.

- inspired by Disciplined Convex Programming (CVX) [Grant & Boyd]

‣ PyMCDP: An interpreter and solver.

http://mcdp.mit.edu/

http://github.com/AndreaCensi/mcdp

The user’s perspective

Page 68: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

monotonic constraint

“interface”

68

1 mcdp { 2 provides capacity [J] 3 requires mass [kg] 4 5 specific_energy = 100 Wh / kg 6 7 mass >= capacity / specific_energy 8 }

capacity [J] mass [kg]battery

Page 69: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

69

lift [N] power [W]

1 mcdp { 2 provides lift [N] 3 requires power [W] 4 5 6 # Maximum lift provided 7 lift <= 10 N 8 9 # Power as a function of lift10 p0 = 1 W11 p1 = 1.5 W/N^212 power >= p0 + p1 * (lift^2) 13 }

actuation

Page 70: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

compositionality

interconnection

70

1 mcdp { 2 battery = new Battery 3 actuation = new Actuation 4 5 gravity = 9.81 m/s^2 6 weight = (mass required by battery) * gravity 7 8 lift provided by actuation >= weight 9 }

capacity [J] mass [kg]battery× gravity

weight [N] lift [N] power [W]actuation

Page 71: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

parameters for specific type of battery

71

1 mcdp { 2 provides capacity [J] 3 # Number of missions to be flown 4 provides missions [R] 5 6 requires mass [g] 7 requires cost [CHF] 8 # Number of replacements needed 9 requires maintenance [R]1011 specific_energy = 150 Wh/kg12 specific_cost = 2.50 Wh/CHF13 cycles = 600 []1415 # How many times should it be replaced?16 num_replacements = ceil(missions / cycles)17 maintenance >= num_replacements1819 mass >= capacity / specific_energy20 21 unit_cost = capacity / specific_cost22 cost >= unit_cost * num_replacements23 }

mass [g]cost [CHF]maintenance []

capacity [J]

# missions []

Page 72: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

72

capacity [J] mass [g]

# missions []cost [CHF]maintenance []

1 mcdp { 2 provides capacity [J] 3 # Number of missions to be flown 4 provides missions [R] 5 6 requires mass [g] 7 requires cost [CHF] 8 # Number of replacements needed 9 requires maintenance [R]1011 specific_energy = 150 Wh/kg12 specific_cost = 2.50 Wh/CHF13 cycles = 600 []1415 # How many times should it be replaced?16 num_replacements = ceil(missions / cycles)17 maintenance >= num_replacements1819 mass >= capacity / specific_energy20 21 unit_cost = capacity / specific_cost22 cost >= unit_cost * num_replacements23 }

NiMH, 100 Wh/kg, 3.41 Wh/$, 500 cycles, "Nickel-metal hydride" NiH2, 45 Wh/kg, 10.50 Wh/$, 20000 cycles, "Nickel-hydrogen" LCO, 195 Wh/kg, 2.84 Wh/$, 750 cycles, "Lithium cobalt oxide" LMO, 150 Wh/kg, 2.84 Wh/$, 500 cycles, "Lithium manganese oxide" NiCad, 30 Wh/kg, 7.50 Wh/$, 500 cycles, "Nickel-cadmium" SLA, 30 Wh/kg, 7.00 Wh/$, 500 cycles, "Lead-acid" LiPo, 150 Wh/kg, 2.50 Wh/$, 600 cycles, "Lithium polymer" LFP, 90 Wh/kg, 1.50 Wh/$, 1500 cycles, "Lithium iron phosphate"

(Wikipedia)

Page 73: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

73

1 choose ( 2 LiPo: new Battery_LiPO, 3 LMO: new Battery_LMO 4 )

LiPo

LMO

Page 74: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

74

mass cost

maintenance

missionscapacity

$ mcdp-solve batteries "<100 Wh, 500 []>" query: ⟨capacity:360000 J, missions:500 ⟩ Minimal resources needed: maintenance, cost, mass = ↑{ ⟨1, 10 CHF, 2230 g⟩, ⟨1, 30 CHF, 1000 g⟩, ⟨1, 36 CHF, 520 g⟩ }

capacity [J] mass [g]

# missions []cost [CHF]maintenance []

batteries

Page 75: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

75

capacity [J] mass [g]

# missions []cost [CHF]maintenance []

batteries

mass cost

maintenance

missionscapacity

Page 76: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

76

capacity [J] mass [g]

# missions []cost [CHF]maintenance []

batteries

mass cost

maintenance

missionscapacity

Page 77: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

77

capacity [J] mass [g]

# missions []cost [CHF]maintenance []

batteries

mass cost

maintenance

missionscapacity

Page 78: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

78

Page 79: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

79

endurance [s]

extra power [W]

capacity [J]

lift

power

total power

total mass

g

extra payload [g]

energy required

total weight

actuator mass

total costcost

cost

# missions

labor# replacements cost

mass

Page 80: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

80

# missionscost [CHF]mass [g]

endurance [s]extra power [W]

extra payload [kg]

Page 81: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

81

# missionscost [CHF]mass [g]

endurance [s]extra power [W]

extra payload [kg]

add mcdp-command

Page 82: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

82

Page 83: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

83

extra power [W]

velocity [m/s]

traveldistance[m] endurance [s]

computer

perception

# missions cost [CHF]

total mass [g]

endurance [s]

resolution

frequency

power[flops]

sensor

mass

total cost [CHF]

payload [kg] payload [kg]

sensor/computer mass

Page 84: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

84

travel distance [m]total cost ownership [CHF]

carry payload [kg]

# missionstotal mass [g]

Page 85: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

85

costumer

functionalityresources

travel distance [m]total cost ownership [CHF]

carry payload [kg]

# missionstotal mass [g]

Page 86: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

86

computer

strategy

shipping

ae

engineering

customer[km]

[g]

+ 1 W[W]power [W]× 100 W/flops [W]

[m]

endurance [s]km-to-m

[m]

USD*g/lb-to-USD[USD*g/lb]

postage [USD]

× 0.5 USD/lb [USD*g/lb]

[USD][USD]

[USD]

× 10 USD

actuationlift [N]g*m/s²-to-N[g*m/s²]

× 9.81 m/s²[g]

[g] [g]

battery

capacity [J]

[W]

[W]

[N]

[J]

cost [USD][g]

power [W]cost [USD]

maintenance

mass [g][g]

[g]

[USD]

[W]

[USD]

[g*m/s²]

[USD][USD]

ships [g]

[W]

[W]

[W]

perception

velocity [m/s]

sensor

fov []framerate [Hz]

resolution [pixels/deg]

computation [flops]

[kg]

velocity [m/s]endurance [s]

power [W]

[W]

g-to-kg[kg]

velocity [m/s]velocity [m/s]

[USD]

[][Hz]

[pixels/deg]

computation [flops]

budget [USD]

[km]

[g]

cost [CHF]battery capacity [J]

‣ Removing 2 edges removes all 22 oriented cycles.

‣ These are the co-design constraints that tie everything together.

Page 87: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

87

Summary

Page 88: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

88

‣ Need: formal design methods for complex autonomous systems.

Page 89: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

89

resources constraints

Watts, CHF, …

trade-offs of functionality and resources

resourcesfunctionality

recursive co-design constraints

heterogenous domains

propulsioncomputation

communication

sensing

energetics

A mathematical theory of co-design

Page 90: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

90

A mathematical theory of co-design

design problemprovided

functionalityrequired resources

‣ A design problem is abstracted as a relation between provided functionality and required resources.

Page 91: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

91

‣ Multi-scale: from components to systems.

travel distance [m] total cost ownership [CHF]carry payload [kg]

number of missions []

A mathematical theory of co-design

computercomputation [flops]

power [W]

capacity [J]mass [kg]battery

cost [CHF]

motorspeed [rad/s]

torque [Nm]

cost [CHF]

current [A]

weight [kg]

Page 92: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

92

‣ Compositionality and abstraction properties

A mathematical theory of co-design

abstraction

Page 93: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

93

‣ Algorithmic results:

- There exists a systematic solution guaranteed to find all minimal solutions, or certificate of infeasibility.

- Complexity depends on the structure of the co-design graph.

computer

strategy

shipping

ae

engineering

customer[km]

[g]

+ 1 W[W]power [W]× 100 W/flops [W]

[m]

endurance [s]km-to-m

[m]

USD*g/lb-to-USD[USD*g/lb]

postage [USD]

× 0.5 USD/lb [USD*g/lb]

[USD][USD]

[USD]

× 10 USD

actuationlift [N]g*m/s²-to-N[g*m/s²]

× 9.81 m/s²[g]

[g] [g]

battery

capacity [J]

[W]

[W]

[N]

[J]

cost [USD][g]

power [W]cost [USD]

maintenance

mass [g][g]

[g]

[USD]

[W]

[USD]

[g*m/s²]

[USD][USD]

ships [g]

[W]

[W]

[W]

perception

velocity [m/s]

sensor

fov []framerate [Hz]

resolution [pixels/deg]

computation [flops]

[kg]

velocity [m/s]endurance [s]

power [W]

[W]

g-to-kg[kg]

velocity [m/s]velocity [m/s]

[USD]

[][Hz]

[pixels/deg]

computation [flops]

budget [USD]

[km]

[g]

A mathematical theory of co-design

Page 94: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

94

A mathematical theory of co-design

business case

engineering problem requiredresources

providedresources

providedfunctionality

requiredfuntionality

Page 95: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

95

‣ Concrete implementation as a formal language.

A mathematical theory of co-design

1 mcdp { 2 provides capacity [J] 3 # Number of missions to be flown 4 provides missions [R] 5 6 requires mass [g] 7 requires cost [CHF] 8 # Number of replacements needed 9 requires maintenance [R]1011 specific_energy = 150 Wh/kg12 specific_cost = 2.50 Wh/CHF13 cycles = 600 []1415 # How many times should it be replaced?16 num_replacements = ceil(missions / cycles)17 maintenance >= num_replacements1819 mass >= capacity / specific_energy20 21 unit_cost = capacity / specific_cost22 cost >= unit_cost * num_replacements23 }

1 mcdp { 2 provides lift [N] 3 requires power [W] 4 5 6 # Maximum lift provided 7 lift <= 10 N 8 9 # Power as a function of lift10 p0 = 1 W11 p1 = 1.5 W/N^212 power >= p0 + p1 * (lift^2) 13 }

Page 96: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

96

taskspecification

“automated roboticist” optimaldesigncatalogue

of parts

How components work together.

‣ Future work: theory - tools - robotics - other fields

What components do.

resourcesfunctionality

Page 97: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

97

Page 98: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

health care hospitals

power plantcoal [ton/day]

water [l/day]

water [l/day]

houses [sqft]

total people

# cops

# doctors

power [W]

# trips/day

# beds

water consumption (l/day)

living standards# incidents

per day# drivers

protection

# citizens

Page 99: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

99

resourceallocation

computation graph

- max latency [-s]

architecture graphpower consumption [W]min throughput [s]

nodes: components edges: signals

nodes: processorsedges: network links

P2P2

Page 100: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

100

“what you want to see”“what you need to do”

S

G

Page 101: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

101

‣ Convergence speed?

- Linear, quadratic, … convergence do not make sense without a metric.

‣ Option 1: add a metric (additional assumptions)

‣ Option 2: derive bounds for the “pure” theory that are parametrization invariant.

group = order isomorphisms

Page 102: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

102

‣ Coproduct - “Choose between technologies”

`

Page 103: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

103

‣ Coproduct - “Choose between technologies”

`

resources

functionality

Page 104: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

104

Page 105: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

105

0 2 4 6 8 100

2

4

6

8

10

minimal solutions

unfeasible

feasible

Page 106: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

106

0 2 4 6 8 100

2

4

6

8

10

minimal solutions

Page 107: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

107

minimal solutions

0 2 4 6 8 100

2

4

6

8

10

Page 108: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

“Don’tcare”-Therearenofeasiblepointsherenotdominatedbyonesalreadyfound.

unfeasibleunclassi@ied

currentantichain

minimalsolutions

‣ The set of all minimal solutions can be found as a fixed point

Page 109: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

‣ Height of a poset: maximum cardinality of its chains.

109

‣ Width of a poset: maximum cardinality of its antichains.

Griggs. Maximum antichains in the product of chains. 1984Bezrukov, Roberts. On antichains in product posets. 2008.

‣ Heights and widths of products

Page 110: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

‣ Dealing with infinite solutions.

110

- Option 1: Restrict attention to sets that are finitely representable - Option 2: Work out generic approximation bounds.

Page 111: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

111

‣ Finite lower/upper (inner/outer) approximations.

Page 112: A Mathematical Theory of Co-Design€¦ · About me ‣ Previous experience:-M.Eng in Automation & Robotics at Sapienza University-Ph.D. in Control & Dynamical System at Caltech-Visiting

112

0

2

4

6

8

exact solutioncomputed

finite lower boundcomputed

finite upper bound