import numpy as np import pandas as pd from SALib.analyze import sobol from ema_workbench import (CategoricalParameter, IntegerParameter, BooleanParameter, RealParameter, ema_logging) from ema_workbench.connectors import netlogo from ema_workbench.em_framework import get_SALib_problem from ema_workbench.em_framework.evaluators import MultiprocessingEvaluator, MC, SequentialEvaluator, SOBOL from ema_workbench.em_framework.outcomes import ArrayOutcome from ema_workbench.util.ema_exceptions import CaseError from ema_workbench.util.ema_logging import method_logger, get_module_logger from ema_workbench.util.utilities import save_results _logger = get_module_logger(__name__) def create_event(asset_id, assettype, technology, year, volume=-1): return asset_id, assettype.value, technology.value, year, volume def sigmoid(k, q, b, time): ''' Parameters ---------- k : float upper asymptote q : float effects Y(0) b : float
jpype = None import os import numpy as np import pyNetLogo from ..em_framework.model import FileModel from ..util.ema_logging import method_logger # Created on 15 mrt. 2013 # # .. codeauthor:: jhkwakkel <j.h.kwakkel (at) tudelft (dot) nl> __all__ = ['NetLogoModel'] _logger = get_module_logger(__name__) class BaseNetLogoModel(FileModel): '''Base class for interfacing with netlogo models. This class extends :class:`em_framework.ModelStructureInterface`. Attributes ---------- model_file : str a relative path from the working directory to the model run_length : int number of ticks command_format : str default format for set operations in logo working_directory : str