Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Support for lp() function #55

Open
adityadey218 opened this issue Jul 17, 2019 · 0 comments
Open

Support for lp() function #55

adityadey218 opened this issue Jul 17, 2019 · 0 comments

Comments

@adityadey218
Copy link

Description

Hi, My R script is giving me an expected result through RStudio but when I use the same script through the Qlik Sense Load Editor, it is giving me an error saying there might be NA/NaN in the data being passed.

Steps to Reproduce

library(xlsx);
library(lpSolve);
q = read.csv(file = 'var140.csv', header = FALSE)
q = as.data.frame(q);
Constraint = q[2:168,1:140];
OBJ = t(q[2:141,142]);
RHS = t(q[2:168,141]);
BackToGeo = (lp("max", OBJ, Constraint, "<=", RHS, compute.sens = TRUE))$solution;
BackToGeo;

Expected behavior

A result vector of size 140 to be returned.
[What you expected to happen]

A result vector of size 140 to be returned.

Actual behavior

Argument 3 returns NA/NaN/Inf error

Environment

Qlik Sense Desktop

Operating system where the SSE plugin is deployed

Windows 10

Qlik Sense

Desktop
[ ] Desktop
[ ] Server

### Versions
Qlik Sense Desktop February 2019
* sse-r-plugin: 1.2.1
* Qlik Sense: February 2019
* Operating system: Windows 10
* [Other relevant versions]

[var140.zip](https://github.com/qlik-oss/sse-r-plugin/files/3402631/var140.zip)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant