euba / BacArena

agent based modelling
GNU General Public License v3.0
26 stars 11 forks source link

plotShadowCost all(m==0) error #138

Closed maringos closed 5 years ago

maringos commented 5 years ago

Dear All,

I have experienced the following error in a setting where two different models are used. Not to mention that the issue occurs only when spec_nr = 2 .

plotShadowCost(sim,spec_nr = 2)
Error in if (all(m == 0)) { : missing value where TRUE/FALSE needed

I look forward to your advice. Regards, @maringos

maringos commented 5 years ago

Update: This happens because the reduced costs for the second model are always NA

maringos commented 5 years ago

Issue solved. Checked with commit 051e2029292bcba8971936267307f1b37b7d434a . Thanks @maringos