Esempio n. 1
0
        public static OptimizationSpace FromJson(string json)
        {
            SerializationInfo info = Newtonsoft.Json.JsonConvert.DeserializeObject <SerializationInfo>(json);
            var type = Type.GetType(info.ConfigType, true);
            var obj  = new OptimizationSpace(type);

            obj.ParamsSets = info.ParamsSets;
            obj.Initialize();
            return(obj);
        }