Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Allocated Factor is Coming as -0.00 #3

Open
1 task done
ZenithClown opened this issue May 16, 2024 · 0 comments
Open
1 task done

[Bug]: Allocated Factor is Coming as -0.00 #3

ZenithClown opened this issue May 16, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ZenithClown
Copy link
Member

Contact Details (optional)

No response

What happened?

When executed in for-loop for a dataframe, the value is sometime coming as -0.00 while on normal execute the problem is not present.

Python Version

= 3.10

What type of operating system are you using?

Windows 10, Windows 11, Linux (debian/ubuntu/mint/etc.)

Relevant System Configuration

No response

Relevant log output

output_per_day = [3_960, 20_438.710]
price_per_unit = [6.050, 5.870]

xs = np.array([output_per_day, price_per_unit])
sense = np.array([1, -1])
obj = dmoop.Linear2DAllocation(xs = xs, senses = sense, drop_outliers = True, outlier_direction = (None, "right"))

obj.factor(methods = [np.mean, np.min], factors = [1, 100])

Code of Conduct

  • I agree to follow this project's Code of Conduct
@ZenithClown ZenithClown added the bug Something isn't working label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant