Docsity

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

Toggle sidebar
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?