matRad IPOPT get constraint bounds function for direct aperture optimization call [cl,cu] = matRad_daoGetConstBounds(optiProb,cst) input optiProb: option struct defining the type of optimization cst: matRad cst struct output cl: lower bounds on constraints cu: lower bounds on constraints References %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
0001 function [cl,cu] = matRad_getConstraintBounds(optiProb,cst) 0002 % matRad IPOPT get constraint bounds function for direct aperture optimization 0003 % 0004 % call 0005 % [cl,cu] = matRad_daoGetConstBounds(optiProb,cst) 0006 % 0007 % input 0008 % optiProb: option struct defining the type of optimization 0009 % cst: matRad cst struct 0010 % 0011 % output 0012 % cl: lower bounds on constraints 0013 % cu: lower bounds on constraints 0014 % 0015 % References 0016 % 0017 % 0018 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0019 0020 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0021 % 0022 % Copyright 2015 the matRad development team. 0023 % 0024 % This file is part of the matRad project. It is subject to the license 0025 % terms in the LICENSE file found in the top-level directory of this 0026 % distribution and at https://github.com/e0404/matRad/LICENSES.txt. No part 0027 % of the matRad project, including this file, may be copied, modified, 0028 % propagated, or distributed except according to the terms contained in the 0029 % LICENSE file. 0030 % 0031 % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 0032 0033 apertureInfo = optiProb.apertureInfo; 0034 0035 % Initialize bounds 0036 cl_dao = zeros(apertureInfo.totalNumOfLeafPairs,1); 0037 cu_dao = inf*ones(apertureInfo.totalNumOfLeafPairs,1); 0038 0039 % get dosimetric bounds from cst (just like for conv opt) by call to 0040 % superclass method 0041 [cl_dos,cu_dos] = matRad_getConstraintBounds@matRad_OptimizationProblem(optiProb,cst); 0042 0043 % concatenate 0044 cl = [cl_dao; cl_dos]; 0045 cu = [cu_dao; cu_dos];