Robyn icon indicating copy to clipboard operation
Robyn copied to clipboard

Error in robyn_allocator

Open caarolinagil opened this issue 1 year ago • 4 comments

When executing the robyn_allocator function, this message appears, but I am not sure what it means since I have checked the data table and the format of the variables is correct.

Here's my code:

AllocatorCollect1 <- robyn_allocator( InputCollect = InputCollect, OutputCollect = OutputCollect, select_model = select_model, scenario = "max_historical_response", #simulates the scenario "what's the optimal media spend allocation given the same average spend level in history?" date_min = date_min, date_max = date_max, optim_algo="SLSQP_AUGLAG", # "SLSQP_AUGLAG" , "MMA_AUGLAG" channel_constr_low = c(0.7), channel_constr_up = c(1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25, 1.25), export = FALSE )

image

Environment & Robyn version

Make sure you're using the latest Robyn version before you post an issue.

  • Check and share Robyn version: 3.9.0
  • R version: 4.2.1

caarolinagil avatar Feb 02 '24 10:02 caarolinagil

sorry for the late reply. Haven't seen this one before. Can you extend the min max dates and see if it works?

gufengzhou avatar Feb 28 '24 06:02 gufengzhou

I receive the same error when extend the min max dates. I've modified 2 weeks for 5 weeks and it doesn't seem to work.

caarolinagil avatar Feb 28 '24 09:02 caarolinagil

For what it's worth, I've tried to do the same execution with a model with version 3.10.3 and it works.

caarolinagil avatar Feb 28 '24 09:02 caarolinagil

Please use the later version. 3.9 is very old

gufengzhou avatar Feb 28 '24 09:02 gufengzhou