CPLEX/en: Difference between revisions

Updating to match new version of source page
No edit summary
(Updating to match new version of source page)
Line 101: Line 101:
<!--T:21-->
<!--T:21-->
}}
}}
Adjust the lines which correspond to the variables <tt>cplexversion</tt> and <tt>studio_root</tt> so that they have the correct values for your situation, i.e. the version you downloaded and the path you specified when extracting the archive.
Ajustez les lignes qui correspondent aux variables <tt>cplexversion</tt> et <tt>studio_root</tt> afin qu'elles aient les bonnes valeurs : la version téléchargée et du chemin d'accès pour ce logiciel (c'est-à-dire le chemin que vous avez spécifié lors de l'extraction de l'archive).


==Java==
==Java==
Line 108: Line 108:
which will allow your code to be found during execution.
which will allow your code to be found during execution.


<div class="mw-translate-fuzzy">
Next, you should modify the dynamic library of cplex. Look for this library in the directory hierarchy of the installation directory, make a copy of it and then execute the command
Next, you should modify the dynamic library of cplex. Look for this library in the directory hierarchy of the installation directory, make a copy of it and then execute the command
{{Command|setrpaths.sh --path libcplex1280.so}}
{{Command|setrpaths.sh --path libcplex1280.so}}
</div>


It's possible that during your compilation, you receive an error message because of a lack of memory. In this case, you should request a compute node using an interactive job to do the compilation. For example,
It's possible that during your compilation, you receive an error message because of a lack of memory. In this case, you should request a compute node using an interactive job to do the compilation. For example,
{{Command|salloc --time{{=}}1:0:0 --ntasks{{=}}1 --mem-per-cpu{{=}}8G}}
{{Command|salloc --time{{=}}1:0:0 --ntasks{{=}}1 --mem-per-cpu{{=}}8G}}
<div class="mw-translate-fuzzy">
Adjust the lines which correspond to the variables <tt>cplexversion</tt> and <tt>studio_root</tt> so that they have the correct values for your situation, i.e. the version you downloaded and the path you specified when extracting the archive.
</div>
Pour installer les libraries de CPLEX tel que <tt>docplex</tt>, nous vous suggérons de le faire à partir d'un [[Python/fr#Cr.C3.A9er_et_utiliser_un_environnement_virtuel | environnement virtuel]].
Une fois l'environnement virtuel activé, vous pouvez faire l'installation de la librairie avec la commande:
{{Commande|prompt=(ENV) [nom@serveur ~]|pip install docplex}}
L'installation des librairies CPLEX doivent se faire sur le noeud de tête, puisqu'elles ne sont pas disponibles sur CVMFS.
38,789

edits