{"title":"克服Microsoft Excel在作物模型构建和模拟方面的弱点","authors":"Christopher Teh Boon Sung","doi":"10.4195/jnrlse.2010.0024","DOIUrl":null,"url":null,"abstract":"<p>Using spreadsheets such as Microsoft Excel for building crop models and running simulations can be beneficial. Excel is easy to use, powerful, and versatile, and it requires the least proficiency in computer programming compared to other programming platforms. Excel, however, has several weaknesses: it does not directly support loops for iterative calculations, and it does not allow one cell to alter the contents of another cell. Thus, the objective of this study was to develop an Excel add-in, called BuildIt, that overcomes some of Excel's weaknesses by: (1) providing a loop for repetitive calculations and (2) providing several operations (called actions) typically needed in building crop models. These actions are such as for numerical integration, initialization of variables, and solving differential equations using the Runge-Kutta method, as well as for copying and manipulation of cell ranges. BuildIt was written in Excel's script language, Visual Basic for Applications (VBA), but it does not require users to program in VBA to build their models. Several examples of models were used in this article to illustrate how BuildIt implements the infrastructure in Excel, and how it can be used to build models and run model simulations. With BuildIt, users are able to use Excel to build and run their mathematical models, without requiring any knowledge in VBA.</p>","PeriodicalId":100810,"journal":{"name":"Journal of Natural Resources and Life Sciences Education","volume":"40 1","pages":"122-136"},"PeriodicalIF":0.0000,"publicationDate":"2011-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://sci-hub-pdf.com/10.4195/jnrlse.2010.0024","citationCount":"1","resultStr":"{\"title\":\"Overcoming Microsoft Excel's Weaknesses for Crop Model Building and Simulations\",\"authors\":\"Christopher Teh Boon Sung\",\"doi\":\"10.4195/jnrlse.2010.0024\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<p>Using spreadsheets such as Microsoft Excel for building crop models and running simulations can be beneficial. Excel is easy to use, powerful, and versatile, and it requires the least proficiency in computer programming compared to other programming platforms. Excel, however, has several weaknesses: it does not directly support loops for iterative calculations, and it does not allow one cell to alter the contents of another cell. Thus, the objective of this study was to develop an Excel add-in, called BuildIt, that overcomes some of Excel's weaknesses by: (1) providing a loop for repetitive calculations and (2) providing several operations (called actions) typically needed in building crop models. These actions are such as for numerical integration, initialization of variables, and solving differential equations using the Runge-Kutta method, as well as for copying and manipulation of cell ranges. BuildIt was written in Excel's script language, Visual Basic for Applications (VBA), but it does not require users to program in VBA to build their models. Several examples of models were used in this article to illustrate how BuildIt implements the infrastructure in Excel, and how it can be used to build models and run model simulations. With BuildIt, users are able to use Excel to build and run their mathematical models, without requiring any knowledge in VBA.</p>\",\"PeriodicalId\":100810,\"journal\":{\"name\":\"Journal of Natural Resources and Life Sciences Education\",\"volume\":\"40 1\",\"pages\":\"122-136\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2011-01-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://sci-hub-pdf.com/10.4195/jnrlse.2010.0024\",\"citationCount\":\"1\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Journal of Natural Resources and Life Sciences Education\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://onlinelibrary.wiley.com/doi/10.4195/jnrlse.2010.0024\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Natural Resources and Life Sciences Education","FirstCategoryId":"1085","ListUrlMain":"https://onlinelibrary.wiley.com/doi/10.4195/jnrlse.2010.0024","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 1
摘要
使用电子表格(如Microsoft Excel)来构建裁剪模型和运行模拟是有益的。Excel易于使用,功能强大,用途广泛,与其他编程平台相比,它对计算机编程的熟练程度要求最低。然而,Excel有几个缺点:它不直接支持循环迭代计算,也不允许一个单元格改变另一个单元格的内容。因此,本研究的目的是开发一个名为BuildIt的Excel插件,通过以下方式克服Excel的一些弱点:(1)提供重复计算的循环,(2)提供构建作物模型通常需要的几个操作(称为操作)。这些操作包括数值积分、变量初始化、使用龙格-库塔方法求解微分方程,以及复制和操作单元格范围。它是用Excel的脚本语言Visual Basic for Applications (VBA)编写的,但它不需要用户用VBA编程来构建模型。本文中使用了几个模型示例来说明BuildIt如何在Excel中实现基础结构,以及如何使用它来构建模型和运行模型模拟。有了BuildIt,用户可以使用Excel来构建和运行他们的数学模型,而不需要VBA中的任何知识。
Overcoming Microsoft Excel's Weaknesses for Crop Model Building and Simulations
Using spreadsheets such as Microsoft Excel for building crop models and running simulations can be beneficial. Excel is easy to use, powerful, and versatile, and it requires the least proficiency in computer programming compared to other programming platforms. Excel, however, has several weaknesses: it does not directly support loops for iterative calculations, and it does not allow one cell to alter the contents of another cell. Thus, the objective of this study was to develop an Excel add-in, called BuildIt, that overcomes some of Excel's weaknesses by: (1) providing a loop for repetitive calculations and (2) providing several operations (called actions) typically needed in building crop models. These actions are such as for numerical integration, initialization of variables, and solving differential equations using the Runge-Kutta method, as well as for copying and manipulation of cell ranges. BuildIt was written in Excel's script language, Visual Basic for Applications (VBA), but it does not require users to program in VBA to build their models. Several examples of models were used in this article to illustrate how BuildIt implements the infrastructure in Excel, and how it can be used to build models and run model simulations. With BuildIt, users are able to use Excel to build and run their mathematical models, without requiring any knowledge in VBA.