GetLastSolution - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

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{Pi}ab\left({c}^{3}+{h}^{3}\right)}{3{c}^{2}}+\mathrm{Pi}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)$