4. Nonlinear problems with What s Best!

Relevanta dokument
Olinjärt med Whats Best!

4. Olinjärt med Whats Best!

4. Olinjärt med What sbest!

Module 1: Functions, Limits, Continuity

Solutions to exam in SF1811 Optimization, June 3, 2014

Viktig information för transmittrar med option /A1 Gold-Plated Diaphragm

12.6 Heat equation, Wave equation

Preschool Kindergarten

Module 6: Integrals and applications

Information technology Open Document Format for Office Applications (OpenDocument) v1.0 (ISO/IEC 26300:2006, IDT) SWEDISH STANDARDS INSTITUTE

Högskolan i Skövde (SK, JS) Svensk version Tentamen i matematik

Webbregistrering pa kurs och termin

Styrteknik: Binära tal, talsystem och koder D3:1

This exam consists of four problems. The maximum sum of points is 20. The marks 3, 4 and 5 require a minimum

Grafisk teknik IMCDP IMCDP IMCDP. IMCDP(filter) Sasan Gooran (HT 2006) Assumptions:

1. Varje bevissteg ska motiveras formellt (informella bevis ger 0 poang)

Beijer Electronics AB 2000, MA00336A,

1. Compute the following matrix: (2 p) 2. Compute the determinant of the following matrix: (2 p)

Grafisk teknik IMCDP. Sasan Gooran (HT 2006) Assumptions:

Support Manual HoistLocatel Electronic Locks

Webbreg öppen: 26/ /

denna del en poäng. 1. (Dugga 1.1) och v = (a) Beräkna u (2u 2u v) om u = . (1p) och som är parallell

Isolda Purchase - EDI

Grafisk teknik. Sasan Gooran (HT 2006)

Introduktion till att använda sig av GLPK

Schenker Privpak AB Telefon VAT Nr. SE Schenker ABs ansvarsbestämmelser, identiska med Box 905 Faxnr Säte: Borås

Kvalitetsarbete I Landstinget i Kalmar län. 24 oktober 2007 Eva Arvidsson

SVENSK STANDARD SS :2010

2.1 Installation of driver using Internet Installation of driver from disk... 3

8 < x 1 + x 2 x 3 = 1, x 1 +2x 2 + x 4 = 0, x 1 +2x 3 + x 4 = 2. x 1 2x 12 1A är inverterbar, och bestäm i så fall dess invers.

Boiler with heatpump / Värmepumpsberedare

Lösenordsportalen Hosted by UNIT4 For instructions in English, see further down in this document


Chapter 2: Random Variables

Problem som kan uppkomma vid registrering av ansökan

Om oss DET PERFEKTA KOMPLEMENTET THE PERFECT COMPLETION 04 EN BINZ ÄR PRECIS SÅ BRA SOM DU FÖRVÄNTAR DIG A BINZ IS JUST AS GOOD AS YOU THINK 05


Byggdokument Angivning av status. Construction documents Indication of status SWEDISH STANDARDS INSTITUTE

Vässa kraven och förbättra samarbetet med hjälp av Behaviour Driven Development Anna Fallqvist Eriksson

LUNDS TEKNISKA HÖGSKOLA Institutionen för Elektro- och Informationsteknik

LINC MODELL 13. INR SVERIGE AB Kosterögatan 15 SE Malmö 13 EN 1428:2005+A1:2008

F ξ (x) = f(y, x)dydx = 1. We say that a random variable ξ has a distribution F (x), if. F (x) =

Kurskod: TAMS28 MATEMATISK STATISTIK Provkod: TEN1 05 June 2017, 14:00-18:00. English Version

Tentamen i Matematik 2: M0030M.

Protokoll Föreningsutskottet


Isometries of the plane

(D1.1) 1. (3p) Bestäm ekvationer i ett xyz-koordinatsystem för planet som innehåller punkterna

Förskola i Bromma- Examensarbete. Henrik Westling. Supervisor. Examiner

Kurskod: TAMS11 Provkod: TENB 07 April 2015, 14:00-18:00. English Version

Surfaces for sports areas Determination of vertical deformation. Golvmaterial Sportbeläggningar Bestämning av vertikal deformation

Workplan Food. Spring term 2016 Year 7. Name:

Second handbook of research on mathematics teaching and learning (NCTM)

SkillGuide. Bruksanvisning. Svenska

Ändringar i språkfiler i e-line 3.42A

Klyvklingor / Ripping Blades.

KTH MMK JH TENTAMEN I HYDRAULIK OCH PNEUMATIK allmän kurs kl

Byggritningar Ritsätt Fästelement. Construction drawings Representation of fasteners SWEDISH STANDARDS INSTITUTE

Examensarbete Introduk)on - Slutsatser Anne Håkansson annehak@kth.se Studierektor Examensarbeten ICT-skolan, KTH


Custom-made software solutions for increased transport quality and creation of cargo specific lashing protocols.

InstalationGuide. English. MODEL:150NHighGain/30NMiniUSBAdapter

State Examinations Commission

Schenker Privpak AB Telefon VAT Nr. SE Schenker ABs ansvarsbestämmelser, identiska med Box 905 Faxnr Säte: Borås

BOENDEFORMENS BETYDELSE FÖR ASYLSÖKANDES INTEGRATION Lina Sandström

Hur fattar samhället beslut när forskarna är oeniga?

Självkörande bilar. Alvin Karlsson TE14A 9/3-2015

Förändrade förväntningar

Rastercell. Digital Rastrering. AM & FM Raster. Rastercell. AM & FM Raster. Sasan Gooran (VT 2007) Rastrering. Rastercell. Konventionellt, AM

samhälle Susanna Öhman

Questionnaire for visa applicants Appendix A

Calculate check digits according to the modulus-11 method

Love og regler i Sverige Richard Harlid Narkos- och Intensivvårdsläkare Aleris FysiologLab Stockholm

1. Unpack content of zip-file to temporary folder and double click Setup

FÖRBERED UNDERLAG FÖR BEDÖMNING SÅ HÄR

Studieteknik för universitetet 2. Books in English and annat på svenska

VARIOBARRIER S/M MIMSAFE BY CHOICE

S 1 11, S 2 9 and S 1 + 2S 2 32 E S 1 11, S 2 9 and 33 S 1 + 2S 2 41 D S 1 11, S 2 9 and 42 S 1 + 2S 2 51 C 52 S 1 + 2S 2 60 B 61 S 1 + 2S 2 A

Välkommen in på min hemsida. Som företagsnamnet antyder så sysslar jag med teknisk design och konstruktion i 3D cad.

Sparbankerna PDF. ==>Download: Sparbankerna PDF ebook By 0

Installation av F13 Bråvalla

CHEMICAL KEMIKALIER I MAT. 700 miljoner på ny miljöteknik. Rester i mer än hälften av alla livsmedel

1. Find the volume of the solid generated by rotating the circular disc. x 2 + (y 1) 2 1

Adding active and blended learning to an introductory mechanics course

FORTA M315. Installation. 218 mm.

Make a speech. How to make the perfect speech. söndag 6 oktober 13

Att stödja starka elever genom kreativ matte.

Dokumentnamn Order and safety regulations for Hässleholms Kretsloppscenter. Godkänd/ansvarig Gunilla Holmberg. Kretsloppscenter

Health café. Self help groups. Learning café. Focus on support to people with chronic diseases and their families

Tentamen i Matematik 2: M0030M.

Här kan du checka in. Check in here with a good conscience

and u = och x + y z 2w = 3 (a) Finn alla lösningar till ekvationssystemet

Teknisk rapport SIS-TR 18:2007 Publicerad/Published: Utgåva/Edition: 1 Språk/Language: svenska/swedish ICS: ;

Taking Flight! Migrating to SAS 9.2!

NO NEWS ON MATRIX MULTIPLICATION. Manuel Kauers Institute for Algebra JKU

UTLYSNING AV UTBYTESPLATSER VT12 inom universitetsövergripande avtal

Swedish adaptation of ISO TC 211 Quality principles. Erik Stenborg

Solowheel. Namn: Jesper Edqvist. Klass: TE14A. Datum:

Sammanfattning hydraulik

Examples on Analog Transmission

Transkript:

4. Nonlinear problems with What s Best! What s Best! have a number of solvers. If we have a linear problem, it recognizes that and normally uses the simplex method. If we have a nonlinear problem it has a number of different methods that it will try. When solving nonlinear problems with a computer, numerical methods are normally the only choice. Numerical methods have the disadvantage that they normally only finds a local optima. If we have a problem which could have multiple local optima, we have to check whether the program have found the right optima. There are different types of adjustables in What s Best! Adjustable Positive reel number Creates easiest by using (Make Adjustable), For more info see pages 17-20 Free Integer Reel number that can be both positive and negative. WB! / Adjustable / Make Adjustable & Free, Note! You have to give the area with Free-variables a name For more info see pages 19-20 nonnegative integer {0, 1, 2, 3..} WB! / Integer (choose General WBINT) Note! You have to give the area with Integer-variables a name For more info see pages 34-35 Binary integer, only {0, 1} WB! / Integer (choose Binary WBBIN) Note! You have to give the area with Binary-variables a name For more info see pages 34-35 What s Best! works like this: 1. It reads the excel file 2. Creates a model 3. Classifies the problem and selects method of solution 4. Solves the problem 5. Saves the result in the excel file (adjustables) 6. Checks that Excel computes the same value of the best cell. This means that What s Best! have to understand all the functions we are using in our problem specification. If What s Best! finds a cell that it doesn t understand how to compute, it will give a warning and threat the cell as a constant value that doesn t depend on the adjustables. Usually you also get warning that What s Best! and Excel calculates different values of the best cell. One example of a function that is not supported is radians() (conversion of degree to radians) A supported function that should be avoided if possible is IF() See chapter 5 for supported functions. 17

What s Best! Classifies a problem as: Linear (easily solved) Quadratic (needs a license we don t have) Nonlinear (is usually tricky) All three above may be combined with integer number problem. A method solving integer problems is to test all possible combinations of integer values. But at least in combination with linear problems there are methods to reduce the number of combinations that has to be tested. One of the methods are called branch-and-bound. The success of nonlinear problems depends much of how the problem is formulated. Good starting values may sometimes be needed if WhatsBest will find a any, or the correct solution. If a error occurs, all adjustables are set to zero, so the model will be much easier to cope with if it is formulated in a way that cleared adjustables gives a model that is mathematically correct. If the constraints also are fulfilled, it normally works even better. Considering that we have a insulated tube that should be optimized: r1=the inner diameter inside the tube r2=the outer diameter of the tube r3=the outer diameter of the insulation If r1, r2 and r3 are set as adjustables we get problem if any of the diameters are zero, or if they are in incorrect order. This could might solved by constraints, but the model normally works much better if it is formulated something like: r1=a1+0,001 r2=r1+a2+0,001 r3=r2+a3+0,001 where a1, a2 and a3 are adjustable and 0,001 is for the problem a small number. Recommended reading: Guidlines for Modelling with WhatsBest! page 142-144. The rest of chapter 6 is also good reading. Recommend examples: Flow Network Modelling page 160-164 Seasonal sales factoring page 193-197 Blending page 149-152 18

Låt oss lösa vårt gamla demo-problem från Lagrange, P8.7 Konvektionskoefficienten, h, ges av: h θ 0.27 1.2 = 2 + 0.55 D där D är diametern på en sfärisk reaktor och θ är temperaturskillnaden till omgivningen. Värmeförlusten ges av q = ha T s T ) Den sfäriska reaktorns yta ges av: 2 A = πd Pga hållfasthetskrav har vi villkoret: D θ = 75 ( a Bestäm de D och som ger den minsta värmeförlusten. Vi startar excel och skriver in nedanstående: Diameter 1 Theta 1 h= 2,55 A= 3,141593 Krav 1 75 q= 8,011061 Cellerna till höger om Diameter och Theta sätter vi till ett godtyckligt numeriskt värde 1 Cellerna till höger om h=, A=, Krav och q= beräknas enligt de samband vi har. Cellen till vänster om 75 markeras och vi trycker sedan på villkorsknappen =. Sedan markerar vi de två godtyckliga cellerna och trycker på knappen Make adjustable Vi markerar cellen till höger om q= och trycker sedan på knappen Minimize Excelarket visar då följande: Diameter 1 Theta 1 h= 2,55 A= 3,141593 Krav 1 Not = 75 q= 8,011061 Nu är det dags att lösa problemet, vi trycker på knappen Solve (måltavlan) Whats Best skapar nu ett nytt kalkylblad, WB! Status, där den lägger en del information om lösningen: 19

What'sBest! 8.0.4.0 (Apr 06, 2006) - Library 4.1.1.13 - Status Report - DATE GENERATED: apr 10, 2006 06:53 PM MODEL INFORMATION: CLASSIFICATION DATA Current Capacity Limits -------------------------------------------------------- Numerics 5 Variables 7 Adjustables 2 2000 Constraints 1 1000 Integers/Binaries 0/0 200 Nonlinears 4 200 Coefficients 14 Minimum coefficient value: 1 on Blad1!D8 Minimum coefficient in formula: Blad1!D8 Maximum coefficient value: 75 on <RHS> Maximum coefficient in formula: Blad1!E10 MODEL TYPE: Nonlinear SOLUTION STATUS: LOCALLY OPTIMAL OPTIMALITY CONDITION: SATISFIED OBJECTIVE VALUE: 809.82392600084 DIRECTION: Minimize SOLVER TYPE: Multistart TRIES: 120 INFEASIBILITY: 0 Den viktigaste informationen är Solution status: Locally Optimal Växlar vi över till kalkylbladet där vi matade in nyss, ser vi: Diameter 0,549452 Theta 136,4996 h= 6,255319 A= 0,94844 Krav 75 = 75 q= 809,8239 Nu kan vi gå in i menyn WB! / Options / Global solver och sätta en bock framför Global Solver, OK. 20

Ett nytt tryck på knappen Solve-knappen ger efter några sekunder följande rapport: What'sBest! 8.0.4.0 (Apr 06, 2006) - Library 4.1.1.13 - Status Report - DATE GENERATED: apr 10, 2006 06:59 PM MODEL INFORMATION: CLASSIFICATION DATA Current Capacity Limits -------------------------------------------------------- Numerics 5 Variables 7 Adjustables 2 2000 Constraints 1 1000 Integers/Binaries 0/0 200 Globals 4 10 Coefficients 14 Minimum coefficient value: 1 on Blad1!D8 Minimum coefficient in formula: Blad1!D8 Maximum coefficient value: 75 on <RHS> Maximum coefficient in formula: Blad1!E10 MODEL TYPE: Nonlinear SOLUTION STATUS: GLOBALLY OPTIMAL OPTIMALITY CONDITION: SATISFIED OBJECTIVE VALUE: 809.82392600084 DIRECTION: Minimize SOLVER TYPE: Global TRIES: 10595 INFEASIBILITY: 0 BEST OBJECTIVE BOUND: 809.82315341434 STEPS: 73 Nu anser Whats Best att den hittat ett globalt minimum! Lämpliga övningsuppgifter: Övningsuppgifterna P1 och P3 från Lagrange. Exempel acktank med påbyggnad av start/stopp 21