• No results found

˚AsmundEldhuset LinearprogrammingonCell/BE

N/A
N/A
Protected

Academic year: 2022

Share "˚AsmundEldhuset LinearprogrammingonCell/BE"

Copied!
25
0
0

Laster.... (Se fulltekst nå)

Fulltekst

(1)

Norwegian University of Science and Technology Faculty of Information Technology, Mathematics and

Electrical Engineering

Department of Computer and Information Science

Master Thesis

Linear programming on Cell/BE

by

Asmund Eldhuset ˚

Supervisor: Dr.Ing. Lasse Natvig Co-supervisor: Dr. Anne C. Elster

Trondheim, June 1, 2009

(2)
(3)

iii

Abstract (TODO)

(4)
(5)

Acknowledgements

(TODO)

v

(6)
(7)

Contents

Contents vii

List of Figures viii

List of Tables ix

Listings x

List of Symbols and Abbreviations xi

1 Introduction 1

2 Background 3

2.1 Linear programming . . . 3

2.1.1 Problem formulation. Standard and slack forms . . . 3

2.1.2 Simplex algorithm . . . 4

2.1.3 Interior point algorithms. . . 4

2.2 Cell Broadband Engine . . . 4

2.2.1 Architecture . . . 4

2.2.2 Programming methods . . . 4

3 Design 5

4 Implementation and testing 7

5 Evaluation 9

6 Conclusion 11

Bibliography 13

vii

(8)

List of Figures

viii

(9)

List of Tables

ix

(10)

Listings

x

(11)

List of Symbols

and Abbreviations

Abbreviation Description Definition

LP Linear programming page3

xi

(12)
(13)

Chapter 1

Introduction

(TODO)

1

(14)
(15)

Chapter 2

Background

(TODO) Chapter introduc-

tion

2.1 Linear programming

(Natvig) Do we need section

introductions too?

2.1.1 Problem formulation. Standard and slack forms

The term linear programming (LP) refers to a type of optimisation problems in which one seeks to maximise or minimise the value of a linear function of a set of variables that are constrained by a set of linear equations and/or inequalities1. Linear programming is a fairly general problem type, and many important

problems(TODO)can be cast as LP problems — for instance, network flow prob- (other than those problems that are initially formulated as an LP problem) lems and shortest path problems (see [?]).

Throughout this report, we will consistently use n to refer to the number of variables and m to refer to the number of inequalities. The variables will typically be(TODO: spell “label(l)ed”)x1throughxn.

The function to be optimised is called theobjective function. In the real world situation that gives rise to an optimisation problem, the function may contain a constant term. However, since this term(TODO), we drop it from the objective function, which can then be written asf =c1x1+c2x2+. . .+cnxn=Pn

j=1cjxj, wherecj are the coefficient values.

(TODO) Nonnegativity of

variables, which is often the case in real world prolems.

The equations and inequalities that (together with the objective function) constitute an LP problem may be represented in different forms. We shall first consider thestandard form, in which only less-than-or-equal-to inequalities with

all variables on the left hand side are allowed. (TODO)A problem containing an Why are not less- than allowed?

1Hence, LP is not (as the name would seem to suggest) a programming technique.

3

(16)

4 CHAPTER 2. BACKGROUND

equalities of the forma1x1+. . .+anxn=b(Natvig)may be rewritten by splitting Should I label the co-

efficients ai1, . . . , ain

instead to maintain consistency with the standard/slack forms?

each equality into two inequalities:a1x1+. . .+anxn≤band−a1x1−. . .−anxn

−b. Also, the goal must be to maximise the objective function (if the original problem is to minimizef, we let our objective function be−f). A linear program in standard form can be expressed as follows:(TODO)

How to indent?

Maximise

f =

n

X

j=1

cjxj

with respect to

n

X

j=1

aijxj ≤bi, fori= 1, . . . , m.

The other common representation, which is employed by the simplex algo- rithm (to be presented shortly), is slack form, which only allows a set of equa- tions (and a nonnegativity constraint for each variable). An inequality of the form a1x1 +. . .+anxn ≤ bis converted to an equation (TODO) by adding a equation or equal-

ity? slack variable w. Together with the condition that w ≥ 0, the equation a1x1 + . . .+anxn+w=bis equivalent to the original inequality (whose difference, or

“slack”, between the left and right hand sides is represented byw).

2.1.2 Simplex algorithm

2.1.3 Interior point algorithms

2.2 Cell Broadband Engine

2.2.1 Architecture

2.2.2 Programming methods

(17)

Chapter 3

Design

(TODO)

5

(18)
(19)

Chapter 4

Implementation and testing

(TODO)

7

(20)
(21)

Chapter 5

Evaluation

(TODO)

9

(22)
(23)

Chapter 6

Conclusion

(TODO) Future work

11

(24)
(25)

Bibliography

13

Referanser

RELATERTE DOKUMENTER

There had been an innovative report prepared by Lord Dawson in 1920 for the Minister of Health’s Consultative Council on Medical and Allied Services, in which he used his

The speed of the striation patterns along an array can be related to the target speed, taking account of the target’s track with its offset and course in relation to the

A UAV will reduce the hop count for long flows, increasing the efficiency of packet forwarding, allowing for improved network throughput. On the other hand, the potential for

The combined effect of these measures may well be a decline in jihadi activity in the short run, i.e., in the next two to five years. There are already signs that this is

This report presented effects of cultural differences in individualism/collectivism, power distance, uncertainty avoidance, masculinity/femininity, and long term/short

3 The definition of total defence reads: “The modernised total defence concept encompasses mutual support and cooperation between the Norwegian Armed Forces and civil society in

Only by mirroring the potential utility of force envisioned in the perpetrator‟s strategy and matching the functions of force through which they use violence against civilians, can

A selection of conditional probability tables for the Bayesian network that will be used to model inference within each grid cell. The top of each table gives the