opencobra / opencobra/COBRA.tutorials

Errors when using optforce

Open
#57 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
MATLAB
Stars
25
Forks
61
Avg merge
1m
Merged PRs (30d)
1

Description

Hi all, when I run the optforce, I meet the followed error. Could you help me find the reason?
The code and error is as followed:

constrOpt = struct('rxnList', {{'r_1714', 'r_2111', 'new5'}}, 'values', [-1.634, 0, 1.9]');
[mustLSet, pos_mustL] = findMustL(model1, minFluxesW, maxFluxesW, 'constrOpt', constrOpt, ...
'runID', runID, 'outputFolder', 'OutputsFindMustL', ...
'outputFileName', 'MustL' , 'printExcel', 1, 'printText', 1, ...
'printReport', 1, 'keepInputs', 1, 'verbose', 0);
No constructor 'org.apache.poi.xssf.usermodel.XSSFWorkbook' with matching signature found.

Error in xlwrite (line 150)
xlsWorkbook = XSSFWorkbook();

Error in findMustL (line 333)
xlwrite([outputFileName '_Info'], Info);

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the supplied optforce/findMustL call, then inspect xlwrite at line 150 and findMustL at line 333, where the XSSFWorkbook constructor is involved in Excel output. Check the Apache POI dependency and the expected Java/MATLAB setup; done means the call completes and writes the requested Excel output without the constructor error.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.