checking that optimisation.json exists; added type to /api/analysis/optimisation/define