Closed mcanigueral closed 4 years ago
Thanks a lot. Will investigate!
The variables from get_variable_value
have an undefined sorting. This will give you the correct ordering and a better solution than my_ov
.
ov <- model$get_variable_value(opt_v [i])
ov <- ov[order(ov$i), "value"]
Oh! Perfect, sorry for that!
Thanks for testing out the package!
Hi, as a continuation of issue #38 , I apply the following objective function in order to obtain an optimal variable (
Vopt
) the most similar as possible toPV
vector (like Sum of square error, SSE):I use
quadprog
solver with the following code:And I obtain:
However, this is not the optimal solution since the curve that fits better the objective goal is that one (
my_ov
):Is this a problem of the solver? I have tested the same with
alabama
andqpoases
and I get the same. To be honest, I have never done it with other languages like Matlab or Python, so I don't have a reference. I'm just testing and learning now.Thanks!