Revision 8a57f3b03992351f46c4537fd0d9351592278d2b (click the page title to view the current version)

TSAP Optimization

Generic model customized to handle time-varied requirements

Model overview

Service abstract Service Machine abstract Machine Service->Machine machine Machine->Service services Requirements abstract Requirements Resources abstract Resources Task Task GoogleCA GoogleCA : Machine GoogleNY GoogleNY : Machine GoogleTX GoogleTX : Machine MailService MailService : Service SearchService SearchService : Service CalendarService CalendarService : Service
Module Statistics: | All clafers: 26 | Abstract: 4 | Concrete: 22 | Reference: 8 | Constraints: 27 | Goals: 1 | Global scope: 1..* | Can skip name resolver: yes |

Module Downloads: | [.cfr] | [.html] |


Service prototype

abstract Service
requirements : Requirements// resources required by a service
machine -> Machine// machine the service is allocated to
[ this in machine.services ]// inverse relationship constraint

Requirements and Resources prototypes

abstract Requirements
morning_cpu -> integer
midday_cpu -> integer
evening_cpu -> integer
night_cpu -> integer
abstract Resources
cpu -> integer

Machine prototype

abstract Machine
services -> Service *
[ this.machine = Machine ]
isFree ?
[ isFree <=> no services ]
limits : Resources
morning_utilization : Resources
/* constraints for limiting total requirements */
[ cpu < limits.cpu ]
midday_utilization : Resources
[ cpu < limits.cpu ]
evening_utilization : Resources
[ cpu < limits.cpu ]
night_utilization : Resources
[ cpu < limits.cpu ]

A machine is free when no services are allocated. Utilization of the machine must satisfy limits varied by time of day.

Optimization goals and constraints

Task
total_free -> integer = # Machine.isFree
<<max Task.total_free>>

Particular data (machines and services)

Machines

GoogleCA : Machine// total number of machines free
[ limits.cpu = 10 ]
GoogleNY : Machine
[ limits.cpu = 16 ]
GoogleTX : Machine
[ limits.cpu = 14 ]

Services