run_userfcn
- run_userfcn(userfcn, stage, varargin)
run_userfcn()- Runs the userfcn callbacks for a given stage.RV = RUN_USERFCN(USERFCN, STAGE, VARARGIN) USERFCN : the 'userfcn' field of mpc, populated by ADD_USERFCN STAGE : the name of the callback stage being executed (additional arguments) some stages require additional arguments. Example: mpc = om.get_mpc(); om = run_userfcn(mpc.userfcn, 'formulation', om);
See also
add_userfcn(),remove_userfcn(),toggle_reserves(),toggle_iflims(),runopf_w_res().