I want to get variables’ value and use it in objective function during the optimization.
When I try JuMP.value(), it shows NoOptimizer(). But the Optimizer is defined in the main function.
Is there anyway that I can get variables’ value in objective function during the optimization?
Thanks a lot!