Alternative way of defining a variable
6 views (last 30 days)
Walter Roberson on 19 Oct 2021
Problem based optimization permits you to use optimvar() to define variables to be optimized over, without giving the variables specific values.
This probably satisfies your question as originally asked.
Unfortunately, piecewise() cannot be used with problem-based optimization.