Supplement 1. Matlab code for solving optimization problems and create Fig. 3 in the text.
收藏NIAID Data Ecosystem2026-03-09 收录
下载链接:
https://figshare.com/articles/dataset/Supplement_1_Matlab_code_for_solving_optimization_problems_and_create_Fig_3_in_the_text_/3520586
下载链接
链接失效反馈官方服务:
资源简介:
File List
consletters.m (MD5: 2f9532ab9ff4f24590bca218e26fa674)
consconsletter1.m (MD5: 376470467e5c1959d2f1a153456f4129)
makebspareshare9.m (MD5: 16c990f61bb4242241c2b2facc674b4c)
profit.m (MD5: 2bc2a751b8a3d2d6f4f5dd7a4906cbaa)
Description
There are 4 files of MATLAB code which will solve the optimization problems presented in Fig. 3 of the manuscript.
“consletters.m” This file contains the code to solve the optimization and calls out the following functions.
“consconsletter1.m” is the constraint function that is called for the optimization.
“makebspareshare9.m” contains the matrixes of coefficients for the yield density curves used in the optimizations.
“profit.m” has the function to be maximized.
Key variables:
X= yield of each parcel(varies between 0–1)
a, g, in, in2 are coeffcients used to estimate the yield density curves
e = the minimum number of a given species that meets the minimum species constraint.
Obi= total production
All code is written and solved using the MATLAB optimization toolbox from MATLAB 2013B. We are unsure if the program will work in earlier or later versions.
创建时间:
2016-08-04



