-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I didn't write this, but I believe that one reason is so that we can use
It also allows us to do things like this
when only a
Note that HiGHS operates on its own internal model instance, rather than the model that is passed to it, since it needs to be able to modify the user's model. |
Beta Was this translation helpful? Give feedback.
-
Got it, you make a copy and steal it, so that you can modify it internally. Thanks for the quick reply! |
Beta Was this translation helpful? Give feedback.
I didn't write this, but I believe that one reason is so that we can use
std::move
thusIt also allows us to do things like this
when only a
HighsLp
instance is passed, and this couldn't be done if a const reference were passed. Maybe we could overload with additional methodsNote that HiGHS operates on its own internal model instance, rather than the model that is passed to it, since it needs to be able to modify the user's model.