Mapping unbounded parameter to bounded one for 'fminsearch'

版本 1.0.4 (1.9 KB) 作者: Jie Jian
To enable 'fminsearch' to be used for constrained parameter ranges
95.0 次下载
更新时间 2020/4/3

查看许可证

A local optimisation function 'fminsearch' (also known as the 'downhill simplex' method) is for unconstrained parameter ranges. If we need to do optimisation for constrained parameter ranges, we need to create periodic functions to map the unconstrained parameter space to the constrained parameter space.

This function 'mapping_parameters.m' is to help to transfer unconstrained range to a customed constrained range, then enable the 'fminsearch' function to be used to the constrained problems.

==========================================================================================
Matlab codes and example:
*Pseudo code for objective function evaluation
>> obj = obj_fun(p)
1. Define constraints a and b either locally or globally
2. Access other data as needed for evaluating obj_fun
3. Map p to p* (repeat for all p) (Matlab code mapping_parameters)
4. Work out obj = obj_fun(p*)
>> return obj_fun value

*To search for optimum p
>> p = fminsearch(obj_fun,p0,options)

==========================================================================================
Suggestions
* It is recommended to re-run at least once the downhill simplex search using the last found p as p0.
* After the search is finished, map the found p to p*. p* is the solution.
* Note that when using a local search method, you may need to repeat the whole search
* Procedure many times with different starting points

引用格式

QJ Wang & Jie Jian (2020). Mapping parameters for Matlab code 'fminsearch' (https://www.mathworks.com/matlabcentral/fileexchange/<...>), MATLAB Central File Exchange. Retrieved January 9, 2020.

MATLAB 版本兼容性
创建方式 R2019b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Optimization 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.4

Update profile figure

1.0.3

Add profile image

1.0.2

changed the title

1.0.1

added some introduction

1.0.0