Update Coefficients in Cost with Copying Whole Vector #22131
Labels
component: mathematical program
Formulating and solving mathematical programs; our autodiff and symbolic libraries
type: feature request
In scenarios where we're solving a sequence of similar mathematical programs (e.g. #22084), we have to copy over the entire coefficient vector to update the cost. It would be much more efficient if we could just modify the internally held coefficient vector in-place. I specifically care about LinearCost, but I imagine it would be applicable to other costs as well.
cc @AlexandreAmice
The text was updated successfully, but these errors were encountered: