Implement the random search method

Assignment Help Python Programming
Reference no: EM133037950

CSC372 Optimisation - Swansea University

Tasks
Consider the following specification for an optimisation problem.

Question 1. Implement all the functions f (x) and gi(x); ∀i ∈ [1, 4] independently, where each func- tion takes at least a Numpy array x. Each function should have an independent counter that represents how many times a respective function has been called (or in other words evaluated).

Question 2. Implement the Random Search (RS) method discussed in the lectures that can use the functions defined above and return an approximation of the optimum.

Question 3. Implement a stochastic global optimisation algorithm of your choice (selected from the algorithms covered in the course) that can use the functions defined above and return an approximation of the optimum solution x∗.

Question 4. For 21 repetitions of each of the algorithms implemented in 2 and 3, compare and com- ment on the performances of these optimisers with respect to the best known optimal function value f (x∗). The number of evaluations for each individual function f (x) or gi(x) that you are allowed at each instance of an optimisation is 4000 at most.

In this assignment, you must use Python 3.x to develop your code in a Jupyter notebook. Please note that you are allowed to use basic and advanced Python modules, such as Numpy, Scipy, Matplotlib, etc. However, the core of the algorithmic implementations must be your own: for instance, you cannot just use a module that already implements the algorithm you selected. If you are in doubt, please feel free to contact the module coordinator for clarifications.

1. Which stochastic optimiser did you choose (for Task 3)?
2. Why did you choose this optimiser?

3. What constraint handling method(s) are you using and why?

Learning Outcome 1: Demonstrate systematic understanding of fundamental concepts of optimisation prob- lems and algorithms.

Learning Outcome 2: Propose an appropriate method to solve an optimisation problem.

Learning Outcome 3: Develop appropriate software for solving an optimisation problem.

Learning Outcome 4: Critically evaluate performance of multiple competing optimisers, and communicate analysis.

Reference no: EM133037950

Questions Cloud

Negotiation skills-bananas at work : What does the banana represent in these negotiations? Relate your answer to subject theory to date.
What is the value of a securitywith an expected growth rate : Question - Based on the constant growth stock model, what is the value of a securitywith an expected growth rate of 0.05
Labor legislation in america : Why do you think the timing of labor legislation in America was as it was? Do you think that our modern laws do enough to address protections.
Compare and contrast organizational leaders : Compare and contrast organizational leaders from different industries whose leadership derailed during COVID-19 pandemic and detail the paradigm skills that wou
Implement the random search method : Implement the Random Search method discussed in the lectures that can use the functions defined above and return an approximation of the optimum
Transference of high-paying white-collar jobs : Is there a difference between the transference of high-paying white-collar jobs, such as computer programming and accounting, to developing nations, and low-pay
Case study of eskom : "Eskom is a South African electricity public utility, established in 1923 as the Electricity Supply Commission (ESCOM) and also known by its Afrikaans name Elek
What are some examples of social capital : What are some examples of social capital that you have in your life? Who do you know (without names) that their behavior has changed dramatically over time?
Describing the leader and leadership styles : Discuss more detail about the leader and leadership styles for GENTING GROUP which includes (traits, behavioral, contingency or etc...)

Reviews

Write a Review

Python Programming Questions & Answers

  Implement core security features

What you will be implementing here is inspired by real world cases such as the Conficker work. To have any chance of defeating such a threat, you need to understand how they defend themselves.

  Define the playround method with only the self parameter

Define the playRound method with only the self parameter. Make a call to another instance method called doRolls that takes no arguements.

  Calculate the daily expense of a student

ISY1003 – Foundations of Programming - calculate the lowest weekly expense among all expense items. For example, the least expensive item for Clark is "Study"

  Create a self-guided project and show a variety of skills

Create a self-guided project and show a variety of skills learned in class. This could be an excellent portfolio piece or part of your resume.

  Find the number of vowels in the string

Using list and one definition for find the Number of vowels in the String.

  Design and implement an english test

CSP1150 - Programming Principles - You are required to design and implement an "English Test" program in which the user is presented with a word and then asked to answer a simple question about the word. After 5 words, the program shows the user's..

  Write an expression that executes the loop body as long

Write an expression that executes the loop body as long as the user enters a non-negative number. These activities may test code with different test values.

  Write a program in r that prints the numbers from 1 to 100

Show me a program in R that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print

  Create a program that asks the user to enter a string

Create a program that asks the user to enter a string that is temporarily stored in variable x. The program should use a method to know if the entered value.

  Create a program to predict the amount of money

Create a program to predict the amount of money you will have in your IRA when you retire. Number of years until you retire, it must be a whole number.

  Define a function findword that takes a line as input

Define a function "findWord" that takes a line as input and return the words & their counts (if stopwords, don't count the word)

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd