Function: json2problem()
json2problem(
json
:string
):ProblemDefinition
Converts a problem from JSON format into an instance of ProblemDefinition.
Parameters
Parameter | Type | Description |
---|---|---|
json | string | A string containing the problem in JSON format. |
Returns
An instance of ProblemDefinition corresponding to the model in JSON format.
Remarks
It is assumed that the problem was exported using function problem2json.
Variables in the new model can be accessed using function Model.getIntervalVars.