message='Algorithms solve_algo={12,14} require json output of the model (use json=compute option)';
end
if~cannot_use_solve_algo_12_14
lhs=cell(length(json.model),1);
isauxdiffloggedrhs=false(length(json.model),1);
fori=1:length(json.model)
iflength(json.model)>1
lhs{i}=json.model{i}.lhs;
else
lhs{i}=json.model.lhs;
end
ifisempty(regexp(lhs{i},'^\w+$|^log\(\w+\)$'))
cannot_use_solve_algo_12_14=true;
message=sprintf('With solve_algo={12,14}, each equation must have on the left hand side a single variable or logged variable (equation %d does not satisfy this condition).',i);