Model configuration

The first step is to configure a model that is hosted on an USEEIO API instance:

            
    var model = useeio.model({
        endpoint:   'http(s)//path/to/api',
        model:      'the_model_id',
        apikey:     'an_optional_api_key',
        asJsonFiles: true, // indicates whether it is a JSON dump of a model
    });
            
        

It is a good idea to share the same model instance between different widgets as it internally caches requests and calculation results. Below, some model and API tests are executed: