|
TOMLAB OPTIMIZATION ENVIRONMENT: mFiles |
![]() |
mFiles
Purpose
For setting m-files used to computer the functions needed for optimization
Syntax
Prob = mFiles(Prob, f, g, H, c, dc, d2c, r, J, d2r, fc, gdc);
Description
mFiles sets the names of the m-Files to be used to compute the functions needed for optimization.
Input Parameters
Prob The TOMLAB Problem structure
Fields used:
f Name of function to compute function value f
g Name of function to compute gradient vector g
H Name of function to compute Hessian matrix H
c Name of function to compute constraint vector c
dc Name of function to compute constraint Jacobian dc
d2c Name of function to compute 2nd part of 2nd der of Lagrangian
r Name of function to compute residual vector r
J Name of function to compute Jacobian matrix J
d2r Name of function to compute 2nd part of 2nd derivative of 0.5*r'*r
fc Name of function to compute function value f and constraint vector c
gdc Name of function to compute gradient vector g and
constraint Jacobian dc
Output Parameters
Prob The TOMLAB Problem structure
Fields used:
USER.f
USER.g
USER.H
USER.c
USER.dc
USER.d2c
USER.r
USER.J
USER.d2r
USER.fc
USER.gdc
![]() |
probAssign | probSetup | ![]() |