 GetLastSolution - Maple Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Mathematics : Optimization : GlobalOptimization Package : GlobalOptimization/GetLastSolution

GlobalOptimization

 GetLastSolution
 get last computed solution Calling Sequence GetLastSolution() Description

 • The GetLastSolution command retrieves the last solution computed by the GlobalOptimization[GlobalSolve] command, including the case where the GlobalSolve command has been interrupted. Examples

 > $\mathrm{with}\left(\mathrm{GlobalOptimization}\right):$
 > $\mathrm{packageVolume}≔4ab\left(c+h+1\right):$
 > $\mathrm{constraints}≔\left\{40\le -\frac{\frac{1}{3}\mathrm{\pi }ab\left({c}^{3}+{h}^{3}\right)}{{c}^{2}}+\mathrm{\pi }ab\left(c+h\right),2b\le a,{h}^{2}\le \frac{\left({b}^{2}-1\right){c}^{2}}{{b}^{2}}\right\}:$
 > $\mathrm{sol}≔\mathrm{timelimit}\left(1,\mathrm{GlobalSolve}\left(\mathrm{packageVolume},\mathrm{constraints},a=1..10,b=1..10,c=1..10,h=1..10,\mathrm{populationsize}=130,\mathrm{avgstopstepwidth}=0.0001\right)\right)$
 > $\mathrm{GetLastSolution}\left(\right)$
 > 

 See Also