#DocumentationBegin #DocumentationEnd #EquationsBegin A=2.0*l*w+2.0*l*h+2.0*w*h V=LocalFunctions.GetV(l,w,h)[1] AR1=l/w AR2=l/h #EquationsEnd #VariablesBegin #VariablesEnd #KnownsBegin A=10.0 foot**2 AR1=2.0 dimensionless AR2=2.0 dimensionless #KnownsEnd #GuessesBegin V,0.050970323865600006,0.06229706250240001,1,meter**3 h,0.27432,0.33528,1,meter l,0.54864,0.67056,1,meter w,0.27432,0.33528,1,meter #GuessesEnd #ConstraintsBegin V>0.0 ft**3 #ConstraintsEnd #LocalFunctionsBegin @RetUnits_('area','volume') def GetV(l,w,h): V = l*w*h A = 2.0*l*w+2.0*l*h+2.0*w*h return [A,V] #LocalFunctionsEnd #OptimizationBegin Objective: maximization ObjectiveVariable: V VariableRanges: AR1=0.1to4.0,AR2=0.1to4.0 PerformOptimization: False MaxNumFnEvalsBeforeGradient: 10 #OptimizationEnd #DOEBegin OutputVariables: V VariableRanges: A=10.0to20.0,levels=11 DesignType: full_factorial PerformDoe: False #DOEEnd #ErrorCriteriaBegin ErrorCriteria: 1e-07 SolveMethod: Numerical StraightSolveWhenPossible: True AllowSymbolicSolveInStraightSolve: True CacheLocalFunctions: True CheckInput: True SolveFriendly: False #ErrorCriteriaEnd #RandomGuessesBegin UseRandomGuesses: True NumRandomGuesses: 10 NumPreGuesses: 10 RandomGuessMethod: LatinHypercube #RandomGuessesEnd #GuessAdjustmentBegin AdjustGuessesBasedOnSolution: False SolutionToUseForAdjustment: 1 PercentSpreadAroundSolution: 30.0 InputFileToModify: none #GuessAdjustmentEnd #GuessMethodBegin GuessMethod: all ApplyToDefaultOrAll: All SolutionToFind: 1 PercentSpread: 10.0 FilenameBaseToNarrowSearch: SolveForGuessesInSteps: True HardcodedRange: 0.0,1000.0 #GuessMethodEnd #HomotopyBegin Timeout: 60.0 Dels: 0.01 TimeLoHiCriterion: 0.1,100.0 Xinit: 0.001 A: 0.0 ManualOrAutomatic: manual #HomotopyEnd #SimpleContinuationBegin Deltat: 0.1 MaxRunsIfSolverFails: 2 NumRandomGuessesInit: 10 NumPreGuessesInit: 20 LoGuessInitial: -10.0 HiGuessInitial: 10.0 ExpansionFactorAroundSoln: 5.0 ExpansionFactorAtendTime: 1.1 ExpansionFactorRetryGuessRange: 10.0 ExpansionFactorRetryNumGuesses: 10 #SimpleContinuationEnd #MultiprocessingBegin UseMultiprocessing: True NumProc: 1 TimeoutInSeconds: 1000.0 #MultiprocessingEnd #FunctionGenerationBegin GenerateFunction: False ReturnValuesToUse: all GeneratedFunctionUnits: user ReturnSolution: 0 CacheFunction: True #FunctionGenerationEnd