Generalized Objective Function

버전 1.0.0.0 (2.35 KB) 작성자: Anthony Kendall
Allows any MATLAB function to easily be optimized
다운로드 수: 1.4K
업데이트 날짜: 2008/9/29

라이선스 보기

In order to optimize any MATLAB function, there are two options: 1) rewrite the function to take only 1 array of inputs, reading all others from a file, perhaps, or from a global variable (undesirable), or 2) write an interface layer that handles this.

This function provides an interface layer that is completely general, and allows any MATLAB function to be used in an optimization loop. To do this, the first call to this function initializes it, storing the data necessary to evaluate and calculate the objective function for optimization. Then, this function 'objective_function.m' is called by an optimization routine such as fminsearch.

Note, this can be used with any optimization routine. It serves as an interface layer between the routine and the function to optimize, while also calculating the objective function value.

There are several functional forms of objective function written in here already, including sum of squared residuals, mean absolute error, mean percent absolute error, and log mean absolute error. Adding others is trivial.

This does NOT require the optimization toolbox.

인용 양식

Anthony Kendall (2026). Generalized Objective Function (https://kr.mathworks.com/matlabcentral/fileexchange/21563-generalized-objective-function), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2008a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Problem-Based Optimization Setup에 대해 자세히 알아보기
버전 게시됨 릴리스 정보
1.0.0.0

Per user comment on MATLAB version compatibility.