Closed meteoman2210 closed 2 years ago
@meteoman2210 hey there - ran into same issues as you. Have you had any luck working this out?
I have my projections and salary aligned, but continuously run into the "Error: You used the variable 'x' with at least one index that does not exists." warning when trying to run:
optimize_generic(data, model, L = 3)
hi thanks for the bug report. I'll look into this today!
Do either of you have an example code and/or csv file I could start with to reproduce the problem? I'm not getting any issues here. For what its worth, there are two issues that commonly occur:
fpts_proj
fieldrow_ids
. Typically this happens when you number the rows (say from 1:100) and then filter the data frame (and remove some ids) by accident. If you filter the data you should make sure to re-number of the row_ids
again.And if its neither of those things send me an example I'll be happy to dig in.
Hi,
I'm really looking forward to using your program. However, I can't get started. I keep getting this "Error: You used the variable 'x' with at least one index that does not exists."
Below is the code I am using along with traceback on the error.
I did some searching for the error and found this: https://github.com/dirkschumacher/ompr/issues/281
Embedded within the discussion is perhaps a solution - "You should download the last version of ompr from github."
Might that be the problem here?
Thank you.
Ray O'Keefe
`model <- add_generic_positions_constraint(model, xyz, constraints) results <- optimize_generic(xyz, model, L = 2) Error: You used the variable 'x' with at least one index that does not exists.