GlobalOptimization - Global Optimization Help

Home : Support : Online Help : Toolboxes : Global Optimization : 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{1\mathrm{π}ab\left({c}^{3}+{h}^{3}\right)}{3{c}^{2}}+\mathrm{π}ab\left(c+h\right),{h}^{2}\le \frac{\left({b}^{2}-1\right){c}^{2}}{{b}^{2}},2b\le a\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)$
 $\left[{77.6889312810377}{,}\left[{a}{=}{2.15295941239685}{,}{b}{=}{1.07647975619839}{,}{c}{=}{5.38628147038892}{,}{h}{=}{1.99397762696330}\right]\right]$ (1)
 >