Difference between revisions of "Penalty.m"
(→See also) |
|||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:penalty.m}} | {{DISPLAYTITLE:penalty.m}} | ||
| − | Penalty terms for the Optimal Control module | + | Penalty terms for the Optimal Control module. |
==Syntax== | ==Syntax== | ||
| Line 8: | Line 8: | ||
==Description== | ==Description== | ||
| − | + | Returns the penalty function and its gradient for the waveform, which should be supplied as row vector or a horizontal stack thereof. | |
==Arguments== | ==Arguments== | ||
| Line 22: | Line 22: | ||
cb - ceiling bound, the upper bound on waveform used in the | cb - ceiling bound, the upper bound on waveform used in the | ||
'SNS' penalty function. | 'SNS' penalty function. | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 18:05, 21 July 2017
Penalty terms for the Optimal Control module.
Syntax
[pen_term,pen_grad,pen_hess]=penalty(wf,type,fb,cb)
Description
Returns the penalty function and its gradient for the waveform, which should be supplied as row vector or a horizontal stack thereof.
Arguments
wf - control sequence waveform.
type - string which identifies penalty type:
'NS', 'DNS', 'SNS'
fb - floor bound, the lower bound on waveform used in the
'SNS' penalty function.
cb - ceiling bound, the upper bound on waveform used in the
'SNS' penalty function.