Given a function which takes var inputs, and returns a var output,
can I uses the same function with par inputs and return a par output?
I want to reuse, the function in multi-objective optimization,
to generate hints for variables in stage2, using outputs from stage1,
which have a functional dependence.
I have currently tried is_defined/defines_var, but the time to first solution
is too long.
As a hack, I try to introduce variables of stage2 in stage1. This seems to work
amazingly well. But I may not be aware of all subsequent stages.
Thanks