I am trying to generate scenario subproblems for a decomposition algorithm. I need to use model pointer to create subproblem optimization models. Then, it is needed to modify the objective function coefficient of each subproblem as the algorithm proceeds. I need to use pointers to avoid creating the subproblem models every time from scratch as follows:
After creating subproblem pointers, I try to change the objective function coefficients of the first scenario subproblem as follows:
I get the error of "unhandled exception: Access violation reading location". I will appreciate if anyone let me know what I am doing wrong. Thank you much.
asked
ORSE |

See if my answer to your other question would answer this question as well and report back. Good luck.

Subproblems have also different constraint sets. So I have to define pointers. Thanks,