Map problem variables to solver-based variable index
returns the linear indices of problem variables as a structure or an integer vector. If you
convert idx
= varindex(prob
)prob
to a problem structure by using prob2struct
,
idx
gives the variable indices in the resulting problem structure that
correspond to the variables in prob
.