# Problem with fmincon on Scilab 2027.0.0

**URL:** <https://scilab.discourse.group/t/problem-with-fmincon-on-scilab-2027-0-0/1268>\
**Category:** Atoms packages\
**Created:** [December 1, 2026, 3:52pm UTC](https://scilab.discourse.group/t/problem-with-fmincon-on-scilab-2027-0-0/1268 "2026-12-01T15:52:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/vmagnin/32/1048_2.png) [@vmagnin](https://scilab.discourse.group/u/vmagnin)\
**Post date:** [December 1, 2026, 3:52pm UTC](https://scilab.discourse.group/t/problem-with-fmincon-on-scilab-2027-0-0/1268/1 "2026-12-01T15:52:07Z")

</div>

Dear maintainers,

I have just installed Scilab 2027.0.0, beside the 2026.1.0. I have then installed fmincon with:

```auto
--> atomsInstall("fmincon")

```

No problem until I restart Scilab 2027:

```auto
Initialisation :
  Chargement de l'environnement de travail

Start Apifun

Start SciIPOpt 1.3.6: load gateways, help, demos.
Start Fmincon 1.1: loading macros, help, atomsLoad : Une erreur est survenue au cours du chargement de 'fmincon-1.1':
	add_help_chapter: error on line #71: "add_help_chapter : Valeur erronée de l'argument d'entrée n°2 : Un répertoire existant attendu."

```

And if I click in the new Modules menu, I can also read that message (in red ink):

```auto
à la ligne 346 de la fonction atomsLoad ( /home/blabla/scilab-2027.0.0/share/scilab/modules/atoms/macros/atomsLoad.sci ligne 362 )
à la ligne 1 du texte exécuté  

```

I have found a similar problem here:

> [@Make apifun toolbox work with Scilab 2027.0.0 - Dirty hack](https://scilab.discourse.group/t/make-apifun-toolbox-work-with-scilab-2027-0-0-dirty-hack/1245/):
>
> The often used toolbox apifun which checks input arguments in macros. It installs in 2027.0.0 but after restarting Scilab I got the error: atomsLoad: An error occurred while loading ‘apifun-0.4.3’: add\_help\_chapter: error on line #71: “add\_help\_chapter: invalid value for input argument #2: an existing directory is expected.” (translated from German) The problem is the old SCIHOME\atoms\x64\apifun\0.4.3\etc\apifun.start which checks for jar/ instead for help/. To workaround this issue just re…

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [December 1, 2026, 5:56pm UTC](https://scilab.discourse.group/t/problem-with-fmincon-on-scilab-2027-0-0/1268/2 "2026-12-01T17:56:25Z")

</div>

Hello,

Please update your fmincon package I just updated it in order to fix the problem:

```auto
atomsSystemUpdate
atomsUpdate fmincon

```

S.

---

<div class="post-metadata">

**Author:** ![vmagnin](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/vmagnin/32/1048_2.png) [@vmagnin](https://scilab.discourse.group/u/vmagnin)\
**Post date:** [December 2, 2026, 9:05am UTC](https://scilab.discourse.group/t/problem-with-fmincon-on-scilab-2027-0-0/1268/3 "2026-12-02T09:05:25Z")

</div>

Thanks @mottelet ! It now works.

---

<div class="post-metadata">

**Author:** ![davcheze](https://avatars.discourse-cdn.com/v4/letter/d/90db22/32.png) [@davcheze](https://scilab.discourse.group/u/davcheze)\
**Post date:** [December 3, 2026, 9:04am UTC](https://scilab.discourse.group/t/problem-with-fmincon-on-scilab-2027-0-0/1268/4 "2026-12-03T09:04:23Z")

</div>

Hi all,

it seems this issue is getting frequent for all modules that have not yet been upgraded wrt [2027.0.0 changes list](https://help.scilab.org/docs/2027.0.0/en_US/CHANGES.html), especially obsolete module skeletton around help

 ![image](https://global.discourse-cdn.com/free1/uploads/utc/original/2X/6/6cca38eddb1795c198439ac61d5236c24d4ca62b.png)  
 ![image](https://global.discourse-cdn.com/free1/uploads/utc/original/2X/8/8e408c651c86b30a52d355de7de636d34813e9cc.png)

formerly in etc/TBXname.start :

```auto
// Load and add help chapter

// =============================================================================

  if or(getscilabmode() == \["NW";"STD"\]) then

    mprintf("\\tLoad help\\n");

    path_addchapter = pathconvert(root_tlbx+"/jar");

    if ( isdir(path_addchapter) <> \[\] ) then

      add_help_chapter(TOOLBOX_NAME, path_addchapter, %F);

    end

  end

```

to be adapted now (@mottelet do you confirm that it’s what we have to do so for our modules ?):

```auto
// Load and add help chapter

// =============================================================================

  if or(getscilabmode() == \["NW";"STD"\]) then

    mprintf("\\tLoad help\\n");

    if ( isdir(root_tlbx + "/help") <> \[\] ) then

      add_help_chapter(TOOLBOX_TITLE, root_tlbx, %F);

    end

  end

```

Thanks,  
David

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [December 3, 2026, 9:17am UTC](https://scilab.discourse.group/t/problem-with-fmincon-on-scilab-2027-0-0/1268/5 "2026-12-03T09:17:21Z")

</div>

Hello,

Yes, the loading script has to be fixed (“jar” → “help”).

S.
