Matlab Optimization Toolbox: Constrained Optimization Example, Schemes and Mind Maps of Law of Torts

A tutorial on using the matlab optimization toolbox to solve a constrained optimization problem. It includes step-by-step instructions for writing the objective function and non-linear constraints, running the optimization with different starting points, and analyzing the results. The goal is to maximize the given objective function subject to various inequality constraints on the variables x1 and x2. This document would be useful for students studying numerical optimization, mathematical programming, or matlab programming in the context of engineering, applied mathematics, or computer science courses. It could serve as study notes, lecture notes, or an assignment for university-level courses related to optimization, matlab, or numerical methods.

Typology: Schemes and Mind Maps

2021/2022

Uploaded on 12/20/2022

osama-emsi
osama-emsi ๐Ÿ‡ฒ๐Ÿ‡ฆ

5 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Preliminary work with Matlab programming
Read carefully the tutorial on Matlab Optimization Toolbox and program the Constrained Optimization
Example: Inequalities (https://fr.mathworks.com/help/optim/ug/optimization-toolbox-tutorial.html).
Questions:
Solve the optimization problem below:
๐‘š๐‘Ž๐‘ฅ (๐‘ฅ1+ ๐‘ฅ2โˆ’10)2
30 +(๐‘ฅ1โˆ’ ๐‘ฅ2+10)2
120
๐‘ . ๐‘ก.
๐‘ฅ1
2. ๐‘ฅ2โ‰ฅ 5
(๐‘ฅ1+ ๐‘ฅ2โˆ’ 5)2
30 +(๐‘ฅ1โˆ’ ๐‘ฅ2โˆ’12)2
120 โ‰ฅ 1
๐‘ฅ1
2+ 8๐‘ฅ2โ‰ค75
๐‘ค๐‘–๐‘กโ„Ž 0 โ‰ค ๐‘ฅ1โ‰ค10
0 โ‰ค ๐‘ฅ2โ‰ค10
a) Write the Matlab functions for the objective function and non-linear constraints and
upload them.
b) Write the Matlab script to run optimization and upload it.
c) Set the starting point at the center of the search space (๐‘ฅ1= 5, ๐‘ฅ2= 5) and run
optimization. Is the optimization successful? What are the best values of objective and
variables?
d) Set the starting point at (๐‘ฅ1= 0, ๐‘ฅ2= 0) and run optimization. Is the optimization
successful? What are the best values of objective and variables?
e) Set the starting point at (๐‘ฅ1=10, ๐‘ฅ2=10) and run optimization. Is the optimization
successful? What are the best values of objective and variables?
f) Set the starting point at (๐‘ฅ1= 0, ๐‘ฅ2=10) and run optimization. Is the optimization
successful? What are the best values of objective and variables?
g) Set the starting point at (๐‘ฅ1=10, ๐‘ฅ2= 0) and run optimization. Is the optimization
successful? What are the best values of objective and variables?
h) Set the starting point at (๐‘ฅ1= 5, ๐‘ฅ2= 0) and run optimization. Is the optimization
successful? What are the best values of objective and variables?
i) Set the starting point at (๐‘ฅ1= 5, ๐‘ฅ2=10) and run optimization. Is the optimization
successful? What are the best values of objective and variables?
j) Set the starting point at (๐‘ฅ1= 0, ๐‘ฅ2= 5) and run optimization. Is the optimization
successful? What are the best values of objective and variables?
k) Set the starting point at (๐‘ฅ1=10, ๐‘ฅ2= 5) and run optimization. Is the optimization
successful? What are the best values of objective and variables?

Partial preview of the text

Download Matlab Optimization Toolbox: Constrained Optimization Example and more Schemes and Mind Maps Law of Torts in PDF only on Docsity!

Preliminary work with Matlab programming

Read carefully the tutorial on Matlab Optimization Toolbox and program the Constrained Optimization Example: Inequalities (https://fr.mathworks.com/help/optim/ug/optimization-toolbox-tutorial.html). Questions: Solve the optimization problem below: ๐‘š๐‘Ž๐‘ฅ

(๐‘ฅ 1 + ๐‘ฅ 2 โˆ’ 10 )^2

(๐‘ฅ 1 โˆ’ ๐‘ฅ 2 + 10 )^2

(๐‘ฅ 1 + ๐‘ฅ 2 โˆ’ 5 )^2

(๐‘ฅ 1 โˆ’ ๐‘ฅ 2 โˆ’ 12 )^2

a) Write the Matlab functions for the objective function and non-linear constraints and upload them. b) Write the Matlab script to run optimization and upload it. c) Set the starting point at the center of the search space (๐‘ฅ 1 = 5 , ๐‘ฅ 2 = 5 ) and run optimization. Is the optimization successful? What are the best values of objective and variables? d) Set the starting point at (๐‘ฅ 1 = 0 , ๐‘ฅ 2 = 0 ) and run optimization. Is the optimization successful? What are the best values of objective and variables? e) Set the starting point at (๐‘ฅ 1 = 10 , ๐‘ฅ 2 = 10 ) and run optimization. Is the optimization successful? What are the best values of objective and variables? f) Set the starting point at (๐‘ฅ 1 = 0 , ๐‘ฅ 2 = 10 ) and run optimization. Is the optimization successful? What are the best values of objective and variables? g) Set the starting point at (๐‘ฅ 1 = 10 , ๐‘ฅ 2 = 0 ) and run optimization. Is the optimization successful? What are the best values of objective and variables? h) Set the starting point at (๐‘ฅ 1 = 5 , ๐‘ฅ 2 = 0 ) and run optimization. Is the optimization successful? What are the best values of objective and variables? i) Set the starting point at (๐‘ฅ 1 = 5 , ๐‘ฅ 2 = 10 ) and run optimization. Is the optimization successful? What are the best values of objective and variables? j) Set the starting point at (๐‘ฅ 1 = 0 , ๐‘ฅ 2 = 5 ) and run optimization. Is the optimization successful? What are the best values of objective and variables? k) Set the starting point at (๐‘ฅ 1 = 10 , ๐‘ฅ 2 = 5 ) and run optimization. Is the optimization successful? What are the best values of objective and variables?