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

Support for lp() function #55

@adityadey218

Description

@adityadey218

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions