Basic Modeling for Discrete Optimization - Third Model by The University of Melbourne #3

Coursera · Intermediate ·🎯 Management & AI-Era Leadership ·7y ago

Key Takeaways

Covers basic modeling for discrete optimization using the third model

Full Transcript

nube Guan Yu and Zhang Fei wanted to borrow horses from a wealthy man Jung shrew King to help suppress the Yellow Turban Army juncture ping wondered if the brothers were talented enough to make good use of his horses for the suppression he decided to give them a problem and promised to let them borrow the horses if they could solve it the problem was to color a map of the Han Dynasty using at most four colors such that the adjacent states didn't share the same color nube thought for quite a while about the problem but was unable to solve it so urgent was the need to borrow the horses that he sought help using the magical tablet so our three heroes are interested in building a stronger army and so they go to visit junk shipping in order to see if he'll sponsor them for horses but Jang souping is a wise man and he sits them a challenge first to show that if he's going to sponsor them then they're going to show the capabilities is going to be able to defeat the Yellow Turban rebels so he gives them this map of the Han Dynasty and says for color of this map so let's look at a music model to call this map so here we have an enumerated type color which is made up of four different colors green blue pink and yellow and each of the different provinces is declared as a variable of this numerator type color so the province suit we're going to have to decide which color to color that province and the same all the rest of the provinces now we have to write down the constraints of the map so any two provinces which are next to each other we may have to make sure that they have a different color and so we've written down all those constraints you can see they're so many that we've gone to a very small font size let's just look at a few of them so the province yang is next to the problems young and so we've written this constraint here the constraint yang is not equally um and similarly the province young is next to problem G so I've written that constraint young is not okay ye the province young is next to the problem Jing so I've written that constraint young is not agreeing and the problems young is next to su and so we've written this constraint youngest article su and we write down all the rest of these neighbour relationships between the different provinces with our sole satisfy we're just trying to find one particular solution to the map coloring problem and we can run this music moral and will result in their coloring able to print out all the different colors of the map knows we didn't need an output function and we're just going to get for each particular province which color it got and if we look at the result we'll see a correct coloring of the map where every province is colored different to every neighbor so what we've seen here is a new feature of meaning which is a numerator types so enumerated types are a way of defining a finite set of named objects and then we can make decisions and parameters can be then about these enumerated types and array indices which will introduce later can also be over there's a numerator types and we can also choose sets over these enumerated types which we'll see shortly so they're declared by this enum and in the name of the enumerator type and then they're defined by this equality and numeron name is then then given this set of identifiers so we gave the example of the set of different colors that we were given and then we can declare the variables by this VAR and then the name of the numerator type and then the variable name or if we don't have the VAR here then it's a parameter and we're just picking a particular fixed version of this enumerated type so we could modify our program to have a different enira type we just say let's color the graph with green blue and pink so can we color this map with just three colors and we could run our music model then we will result in this unsatisfiable right so this is a new about but we haven't seen before and it should be fairly clear what it means it means that there is no way of free coloring the map of the Han Dynasty provinces so we know if you know that there is a four color map theorem says there's always a way of for coloring a planar map like this one but there's no way of coloring this map with three colors and so our music our solver is telling us there is no possible way of solving this problem and getting back the result unsurvivable so in this lecture we've introduced enumerated types which is a way of introducing a named set of objects so their real importance is that they introduce a notion of type safety of models if I have two different sets of objects that I'm making decisions about then I don't want to mix them up I don't want to make decisions about this one when I meant to be making decisions about that one so new motor types will in fact map down in the solvers to be integers we could have used the numbers one to four to a color out map instead of these color names and in fact the numbers one to four is what the solver will see when it sees this problem but by using this name type we don't only get a model which is easier to understand but we also get this notion of type safety which will help us later on with more complicated models we also saw for the first time an unsatisfiable model we have to be clear that not every model has a solution so sometimes we'll ask to find a solution that will be none more often and unsatisfiable model will arise because we typed in a model incorrectly there's a bug in our model or bug in our data and unsatisfiable will be a trigger for us to try and find out what's going wrong and the problem we solved here was graph coloring this is a very classic problem in graph theory and it applications in register allocation and compilers and timetabling lot of other things and of course usually as I'll usually say pure graph coloring is better handled by specialized algorithm so lots of problems in graph theory have been studied intentionally like graph coloring and if you're doing a pure graph coloring problem then you should use a specialized algorithm but if we add some side constraints about how specific parts of the graph should be colored then using a general discrete optimization like mini Zink is the way to go you

Original Description

This video is part of an online course, Basic Modeling for Discrete Optimization, created by The University of Melbourne and The Chinese University of Hong Kong. Enroll today at https://www.coursera.org/learn/basic-modeling?utm_source=yt&utm_medium=social&utm_campaign=channel&utm_content=unimelb to get access to the full course. About this course: Optimization is a common form of decision making, and is ubiquitous in our society. Its applications range from solving Sudoku puzzles to arranging seating in a wedding banquet. The same technology can schedule planes and their crews, coordinate the production of steel, and organize the transportation of iron ore from the mines to the ports. Good decisions in manpower and material resources management also allow corporations to improve profit by millions of dollars. Similar problems also underpin much of our daily lives and are part of determining daily delivery routes for packages, making school timetables, and delivering power to our homes. Despite their fundamental importance, all of these problems are a nightmare to solve using traditional undergraduate computer science methods. Visit https://www.coursera.org/learn/basic-modeling?utm_source=yt&utm_medium=social&utm_campaign=channel&utm_content=unimelb to learn more! Keep in touch with Coursera! Twitter: https://twitter.com/coursera Facebook: https://www.facebook.com/Coursera/ ------ Coursera partners with more than 275 leading universities and companies to bring flexible, affordable, job-relevant online learning to individuals and organizations worldwide. We offer a range of learning opportunities—from hands-on projects and courses to job-ready certificates and degree programs. Remember to like, subscribe, and share this video with friends and colleagues looking to create new career possibilities. Visit Coursera at: https://bit.ly/46X30CH Unlock unlimited learning with a Coursera Plus subscription: https://bit.ly/48gBUHW Check out more from Coursera: @Cour
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Coursera · Coursera · 0 of 60

← Previous Next →
1 Principles of Obesity Economics with Professor Kevin Frick
Principles of Obesity Economics with Professor Kevin Frick
Coursera
2 Introduction to the U.S. Food System: Perspectives from Public Health by John Hopkins University
Introduction to the U.S. Food System: Perspectives from Public Health by John Hopkins University
Coursera
3 E-learning and Digital Cultures
E-learning and Digital Cultures
Coursera
4 Equine Nutrition with Jo-Anne Murray
Equine Nutrition with Jo-Anne Murray
Coursera
5 Coursera Meetup BBQ
Coursera Meetup BBQ
Coursera
6 Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Coursera
7 Nutrition for Health Promotion and Disease Prevention with Katie Clark
Nutrition for Health Promotion and Disease Prevention with Katie Clark
Coursera
8 Information Security and Risk Management in Context with Dr. Barbara Endicott-Popovsky
Information Security and Risk Management in Context with Dr. Barbara Endicott-Popovsky
Coursera
9 Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Contraception: Choices, Culture and Consequences with Jerusalem Makonnen
Coursera
10 Writing in the Sciences with Kristin Sainani
Writing in the Sciences with Kristin Sainani
Coursera
11 Economic Issues, Food, and You with Jennifer Clark
Economic Issues, Food, and You with Jennifer Clark
Coursera
12 Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Coursera
13 Useful Genetics with Professor Rosie Redfield
Useful Genetics with Professor Rosie Redfield
Coursera
14 A History of the World since 1300!!!! with Jeremy Adelman
A History of the World since 1300!!!! with Jeremy Adelman
Coursera
15 Microeconomics  with Richard McKenzie
Microeconomics with Richard McKenzie
Coursera
16 Discrete Optimization with Professor Pascal Van Hentenryck
Discrete Optimization with Professor Pascal Van Hentenryck
Coursera
17 Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Leading Strategic Innovation and Creativity in Organizations with David A. Owens, PhD
Coursera
18 Science from Superheroes to Global Warming with Michael Dennin
Science from Superheroes to Global Warming with Michael Dennin
Coursera
19 Introduction to Digital Sound Design with Steve Everett by Emory University
Introduction to Digital Sound Design with Steve Everett by Emory University
Coursera
20 Women and the Civil Rights Movement with Dr. Elsa Barkley Brown
Women and the Civil Rights Movement with Dr. Elsa Barkley Brown
Coursera
21 Galaxies and Cosmology with S. George Djorgovski
Galaxies and Cosmology with S. George Djorgovski
Coursera
22 Science, Technology, and Society in China I, II, and III: Basic Concepts with Naubahar Sharif
Science, Technology, and Society in China I, II, and III: Basic Concepts with Naubahar Sharif
Coursera
23 Introduction to Pharmacy with Kenneth M. Hale, R.Ph., Ph.D.
Introduction to Pharmacy with Kenneth M. Hale, R.Ph., Ph.D.
Coursera
24 AIDS with Kimberley Sessions Hagen, EdD
AIDS with Kimberley Sessions Hagen, EdD
Coursera
25 Health Informatics in the Cloud with Mark Braunstein
Health Informatics in the Cloud with Mark Braunstein
Coursera
26 Songwriting with Pat Pattison by Berklee College of Music
Songwriting with Pat Pattison by Berklee College of Music
Coursera
27 Software Defined Networking with Dr. Nick Feamster
Software Defined Networking with Dr. Nick Feamster
Coursera
28 Epigenetic Control of Gene Expression with Dr Marnie Blewitt
Epigenetic Control of Gene Expression with Dr Marnie Blewitt
Coursera
29 Guitar for Beginners - Introduction to Guitar with Thaddeus Hogarth by Berklee College of Music
Guitar for Beginners - Introduction to Guitar with Thaddeus Hogarth by Berklee College of Music
Coursera
30 Organizational Analysis with Daniel McFarland
Organizational Analysis with Daniel McFarland
Coursera
31 Scientific Computing with J. Nathan Kutz
Scientific Computing with J. Nathan Kutz
Coursera
32 Jazz Improvisation - Introduction to Improvisation with Gary Burton by Berklee College of Music
Jazz Improvisation - Introduction to Improvisation with Gary Burton by Berklee College of Music
Coursera
33 Principles of Economics for Scientists with Antonio Rangel
Principles of Economics for Scientists with Antonio Rangel
Coursera
34 Introduction to Music Production with Loudon Stearns by Berklee College of Music
Introduction to Music Production with Loudon Stearns by Berklee College of Music
Coursera
35 Principles of Public Health with Zuzana Bic
Principles of Public Health with Zuzana Bic
Coursera
36 The Science of Gastronomy with King Chow, Lam Lung Yeung by HKUST
The Science of Gastronomy with King Chow, Lam Lung Yeung by HKUST
Coursera
37 The Language of Hollywood: Storytelling, Sound, and Color with Scott Higgins by Wesleyan University
The Language of Hollywood: Storytelling, Sound, and Color with Scott Higgins by Wesleyan University
Coursera
38 Nutrition and Physical Activity for Health with John M. Jakicic, Ph.D., and Amy D. Rickman,...
Nutrition and Physical Activity for Health with John M. Jakicic, Ph.D., and Amy D. Rickman,...
Coursera
39 Nutrition, Health, and Lifestyle: Issues and Insights with Jamie Pope, MS, RD, L
Nutrition, Health, and Lifestyle: Issues and Insights with Jamie Pope, MS, RD, L
Coursera
40 Survey of Music Technology with Jason Freeman by Georgia Institute of Technology
Survey of Music Technology with Jason Freeman by Georgia Institute of Technology
Coursera
41 Exercise Physiology: Understanding the Athlete Within with Mark Hargreaves
Exercise Physiology: Understanding the Athlete Within with Mark Hargreaves
Coursera
42 Canine Theriogenology for Dog Enthusiasts with Margaret V. Root
Canine Theriogenology for Dog Enthusiasts with Margaret V. Root
Coursera
43 Web Intelligence and Big Data with Gautam Shroff
Web Intelligence and Big Data with Gautam Shroff
Coursera
44 Critical Perspectives on Management with  Rolf  Strom-Olsen
Critical Perspectives on Management with Rolf Strom-Olsen
Coursera
45 El ABC  del emprendimiento esbelto  with Sergio  Ortiz Valdes
El ABC del emprendimiento esbelto with Sergio Ortiz Valdes
Coursera
46 Interprofessional Healthcare Informatics with Karen  Monsen
Interprofessional Healthcare Informatics with Karen Monsen
Coursera
47 Creativity, Innovation, and Change with Jack V. Matson, Darrell Velegol and Kath
Creativity, Innovation, and Change with Jack V. Matson, Darrell Velegol and Kath
Coursera
48 Innovacion educativa con recursos abiertos with Maria Soledad Ramirez Montoya an
Innovacion educativa con recursos abiertos with Maria Soledad Ramirez Montoya an
Coursera
49 Inspiring Leadership through Emotional Intelligence with Richard Boyatzis
Inspiring Leadership through Emotional Intelligence with Richard Boyatzis
Coursera
50 Matematicas y movimiento with
Matematicas y movimiento with
Coursera
51 Sustainability of Food Systems: A Global Life Cycle Perspective with Jason Hill
Sustainability of Food Systems: A Global Life Cycle Perspective with Jason Hill
Coursera
52 Latin American Culture with Enrique Tames
Latin American Culture with Enrique Tames
Coursera
53 Latin American Culture' with undefined
Latin American Culture' with undefined
Coursera
54 Computer Security with Dan Boneh
Computer Security with Dan Boneh
Coursera
55 Introduction to Art: Concepts & Techniques
Introduction to Art: Concepts & Techniques
Coursera
56 Programmed cell death
Programmed cell death
Coursera
57 El ABC  del emprendimiento esbelto
El ABC del emprendimiento esbelto
Coursera
58 Understanding economic policymaking
Understanding economic policymaking
Coursera
59 History of Rock, Part 1 by University of Rochester
History of Rock, Part 1 by University of Rochester
Coursera
60 Pensamiento Cientifico
Pensamiento Cientifico
Coursera

Related Reads

Up next
The most common trait amongst the world’s top 350 CEO’s 💪
Uncensored CMO
Watch →