Scilab---FOSSEE-Optimisation-Toolbox/C2/Installation-of-FOSSEE-Optimization-Toolbox/English

From Script | Spoken-Tutorial
Revision as of 02:41, 14 September 2021 by Anandajitht (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Title of script: Installation of FOSSEE Optimization Toolbox

Author: Harpreet Singh, Georgey John, Rupak Rokade and Anandajith T S

Keywords:Scilab, FOSSEE Optimization Toolbox, Installation, FOT, Optimization Theory

Visual Cue Narration

Show Slide:

Title Slide

Hello and welcome to the Spoken Tutorial on “Installation of FOSSEE Optimization Toolbox in Scilab”.

Show Slide:

Learning Objectives

In this tutorial, we will learn how to:

  • Install the FOSSEE Optimization Toolbox.

  • Execute a few examples using the toolbox.

Show Slide:

System Requirements

To record this tutorial, I am using

  • Ubuntu 18.04 as the operating system and

  • Scilab 6.1.0

Show Slide:

Installation Requirements

For the installation we require a working Internet connection.

Show Slide:

Pre-requisite

Before practising this tutorial, a learner should have :

  • basic knowledge of Scilab and Optimization Theory

For Scilab, please refer to the Scilab tutorials available on the Spoken Tutorial website.

Show Slide:

What is FOSSEE Optimization Toolbox?

  • FOT is a toolbox in Scilab.

  • It solves optimization problems using functions like linprog, fmincon and many others.

  • It can solve Linear Programming, Mixed-Integer Linear Programming, Quadratic Programming, Nonlinear Programming, minimax, goal-attain, least squares and Minimization/maximization with or without constraints problems.

In the Scilab console, type atomsGui >> press Enter

There are several ways to install the toolbox.

I will demonstrate one of the ways.

Open Scilab.

In the Scilab console type atomsGui and press Enter.

This will open the Module Manager- ATOMS window.

You will see a Categories list on the left side.

Click once on the Optimization category

Click once on the Optimization category.

This will show the toolboxes available in the Optimization category.

Click once on the FOSSEE Optimization Toolbox

Click once on the FOSSEE Optimization Toolbox.

This will show the details of this toolbox on the right side of the window.

Scroll up until you see the Changelog statement.

Make sure that the topmost version shown under Changelog, is the latest version.

At the time of recording, the latest version of FOT for me is version 0.4

Open a web browser >> type the url

https://atoms.scilab.org/

>> press Enter

Now how does one confirm which version of FOT is the latest?

To find out, open a web browser and type the url https://atoms.scilab.org/

And press Enter.

This will open the atoms web page.

In the search bar >> type fot >> press enter

In the search bar type, fot and press Enter.

You can see FOSSEE Optimization Toolbox in the search result. Click on it.

Notice that the version shown is 0.4 which is the latest version.

Now switch to the Module Manager- ATOMS window.

Click on the File menu >> click on Update List of Packages

Do the following if you see an older version of FOT as the topmost version under Changelog.

On the top left corner of the window, click on the File menu.

Then click on Update List of Packages

This will open a pop up window showing a progress bar.

It is updating the list of packages.

After the popup closes automatically, check the Scilab console.

If the update fails and you see any error messages, restart Scilab and repeat the steps.

For me, it says it has finished scanning the repository.

Click on the Install button

If the toolbox version shown in the Module Manager- ATOMS window is the latest one, we can install it.

At the bottom of the window, click on the Install button.

If the installation is successful, Installation Done message appears at the bottom.

After this, It is required to restart Scilab.

Upon restart, the FOT toolbox will get loaded automatically.

Restart Scilab

I have restarted Scilab.

Notice that the FOT toolbox gets loaded on startup.

Let us now run a few examples to confirm if the installation was successful.

Type help in Scilab console >> press Enter.

Type help in the Scilab console and press Enter.

This will open the Help window.

Scroll to the bottom of Table Of Contents on the left hand side

Click on FOSSEE_Optimization_Toolbox

Click on FOSSEE_Optimization_Toolbox

This will open the help contents on this toolbox on the right hand side.

Click on the fot_fmincon function.

Click on the fot_fmincon function.

This function is used to solve a general nonlinear optimization problem.

Scroll down

Click on the Execute button

Scroll down until you reach the Examples section.

Let us execute the first example.

Scroll to the right until you see the Execute button on the first example.

Click on the Execute button.

Switch to the Scilab console.

Switch to the Scilab console.

You can see that the example got executed successfully.

Some of the values displayed on my console may differ from what you get.

You can safely ignore this.

Now let us execute one more example.

Switch to the Help window

click on fot_linprog

Switch to the Help window.

On the left hand side, scroll down and click on fot_linprog

Scroll down

Click on the Execute button

On the right hand side, scroll down until you reach the Examples section.

Let us execute the first example.

Scroll to the right, if needed, until you see the Execute button on the first example.

Click on the Execute button.

Switch to the Scilab console.

Switch to the Scilab console.

You can see that the example got executed successfully.

Some of the values displayed on my console may differ from what you get.

You can safely ignore this.

Show Slide:

Summary

This brings us to the end of this tutorial.

Let us summarise.

In this tutorial, we have learnt to:

  • Install the FOSSEE Optimization Toolbox.

  • Execute examples from the Help menu in the toolbox.

Show Slide: About Spoken Tutorial project

The video at the following link summarises the Spoken Tutorial project.

Please download and watch it

Show Slide: Spoken Tutorial Workshops

The Spoken Tutorial Project team conducts workshops and gives certificates.

For more details, please write to us.

Show Slide:

Answers for THIS Spoken Tutorial

Do you have questions in THIS Spoken Tutorial?

Please visit this site.

Choose the minute and second where you have the question

Explain your question briefly

The Spoken Tutorial project will ensure an answer

You will have to register to ask questions

Show Slide:

Forum for specific questions:

The Spoken Tutorial forum is for specific questions on this tutorial.

Please do not post unrelated and general questions on them.

This will help reduce the clutter.

With less clutter, we can use these discussions as instructional material.

Show Slide: FOSSEE Forum For any general or technical questions on Scilab, visit the FOSSEE forum and post your question.

Show Slide:

Textbook Companion project.

The FOSSEE team coordinates the Textbook Companion project.

We give Certificates and Honorarium to the contributors.

For more details, please visit this site.

Show Slide: Lab Migration

The FOSSEE team coordinates the Lab Migration project.

For more details, please visit this site.

Show Slide: Acknowledgement Spoken Tutorial and FOSSEE projects are funded by MoE, Government of India.
Show Slide: Thank You

The script has been created by FOSSEE Team, IIT Bombay.

And the video for this tutorial was created by Anandajith T S, FOSSEE intern 2021.

Thanks for joining.

Contributors and Content Editors

Anandajitht, Nancyvarkey, Priyanka.guntaka123