Thank you very much for the comprehensive toolbox,
I try the two examples and it seems that they are working fine,
I'm having a trouble to run the simulation on different network (without attacks at this point)
in Net3.zip are the .inp layout and the .cpa files
I'm trying to run the following code (inside the toolbox folder):
% add path for epanetCPA toolbox
addpath('.\epanetCPA\')
% add location of the map and cpa files
inpFilePath = 'Net3_epanetjs.inp';
% Define scenario
scenarioFolder = './scenarios/Net3_epanepjs/';
noAttackCpaFile = 'Net3_epanetjs_no_attacks.cpa';
% Similation without attacks (used for comparison).
simul = EpanetCPA(inpFilePath, [scenarioFolder, noAttackCpaFile]); %
simul = simul.run();
simul.outputResults('Net3_no_attacks');
I wonder if you can help me understand the following error:
Warning: The data type 'FcnPtr' used by function ENepanet does not exist.
Warning: The data type 'FcnPtr' used by function ENepanet does not exist.
TANKS
OF_TANKS
JUNCTIONS
OF_JUNCTIONS
PUMPS
VALVES
PIPES
OF_PIPES
RESERVOIRS
Warning: SCADA cybernode not found. Adding SCADA node
PLC and controls are consistent. Check PASSED!
Warning: The data type 'FcnPtr' used by function ENepanet does not exist.
Error using EpanetControl/overrideControl (line 130)
Failed creating variable from dictionary.
Error in EpanetCPASimulation/overrideControls (line 606)
controls(ix).overrideControl(PLCdict);
Error in EpanetCPASimulation/hydraulicStep (line 411)
self.overrideControls(thisController, PLCdict);
Error in EpanetCPASimulation/run (line 223)
[self,tstep] = self.hydraulicStep(tstep);
Error in EpanetCPA/run (line 75)
self.simulation = self.simulation.run();
Error in main (line 68)
simul = simul.run();
Warning: The data type 'FcnPtr' used by function ENepanet does not exist.
Thank you very much for the comprehensive toolbox,
I try the two examples and it seems that they are working fine, I'm having a trouble to run the simulation on different network (without attacks at this point)
I'm trying to run the following code (inside the toolbox folder):
I wonder if you can help me understand the following error:
Thanks!