Description Usage Arguments Value Author(s) See Also
View source: R/optimbase.checkshape.R
This function is called by optimbase.checkcostfun
to check whether the
dimensions of a cost function output match the expectations.
1 2 |
this |
An optimization object. |
varname |
The name of the output being checked, either 'f', 'c', or 'g'. |
data |
A content of the output. |
index |
The index (see |
expectednrows |
Number of expected rows. |
expectedncols |
Number of expected columns. |
Return the optimization object or an error message if the dimensions are inconsistent.
Author of Scilab optimbase module: Michael Baudin (INRIA - Digiteo)
Author of R adaptation: Sebastien Bihorel (sb.pmlab@gmail.com)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.