Skip to main content

All Questions

0 votes
1 answer
57 views

Integer Solver vs ExpressionsBasedModel.minimise()

I am trying to implement an integer solver using Ojalgo across time series data, with only first-order constraints and a linear first-order objective function. All my variables are integers. I am ...
lmcdev's user avatar
  • 3
0 votes
1 answer
48 views

How to set specific array-constraints with the Google OR-Tools?

At the moment I am trying to solve a specific problem in which employees are voting for advanced training courses from a scale of 1 to 10. Not all courses will be offered and not every employee can ...
Joachim Rode's user avatar
0 votes
3 answers
115 views

Solving for the closest point within designated area

Trying to wrap my head around a problem I am trying to solve. I can't imagine I'm the first one that has solved something like this. I'm fairly certain its a linear programming problem. I'm working in ...
jdoe's user avatar
  • 29
0 votes
1 answer
110 views

How to get variables values from Optimisation.Result in ojAlgo?

I use ojAlgo lib in version 51.4.1. I ve got: protected final ExpressionsBasedModel model = new ExpressionsBasedModel(); protected Variable[] result; and some other variables. Each variable is added ...
lukaszP's user avatar
  • 45
1 vote
3 answers
923 views

Find min max range of multiple variables the results in maximum PnL

Given a table of N columns, all columns except last are variables and the last column is PnL (Profit and Loss). Each variable value is a whole number (no fractions, decimals) greater than or equals 0 ...
Amar's user avatar
  • 31
0 votes
1 answer
67 views

Using SCPSolver in Android

I am trying to use SCPSolver in Android project to solve linear programming problem. I have downloaded the Jar file and added it to the lib folder. Everything works seemingly fine until I invodel the ...
Abdalnassir Ghzawi  's user avatar
1 vote
1 answer
3k views

Or-tools java.lang.NoClassDefFoundError: com/sun/jna/Platform

Hi I'm trying to run this sample code on my eclipse ide and have manually adding the jars file without using the pom file provided but it's complaining with this error. I managed to compile and run ...
ABuNeNe's user avatar
  • 29
1 vote
1 answer
331 views

How do one solve linear programming problems with ojAlgo?

I am trying to learn how to solve a linear programming problem and I want to use ojAlgo LinearSolver. I solve the equality constraints using a SolverTask and get a single feasible point. Nice! Then I ...
Magnus's user avatar
  • 35
0 votes
0 answers
177 views

Indication warm start infeasible in CPLEX

I'm running LP problem in CPLEX with JAVA API. I'm trying to model a greedy solution by fixing a maximal number of variables until I get a feasible solution. I use this to fix the variables: cplex....
user avatar
0 votes
1 answer
164 views

Using google or-tools in eclipse

I am new to both Eclipse and or-tools. I have downloaded the binary for or-tools and when I do 'make test_java' (from the terminal), everything runs fine. However, when I try to use it in eclipse it ...
Subhodeep Maji's user avatar
0 votes
2 answers
116 views

Looking for the correct way to use "DoubleValueRange" in OptaPlanner

I am learning about how to use OptaPlanner via solving linear programming. I know there are quite a lot of LP solvers, but I think it's a good start point for me to understand the modeling. But When I ...
yystju's user avatar
  • 1
4 votes
2 answers
404 views

How to find the point that gives the maximum value fast? Java or c++ code please

I need a fast way to find maximum value when intervals are overlapping, unlike finding the point where got overlap the most, there is "order". I would have int[][] data that 2 values in int[]...
lier wu's user avatar
  • 620
0 votes
1 answer
380 views

How to clone a cplex object in Java?

I am solving a problem in Java using the CPLEX library. I use a class "Model" to create a CPLEX object, and add to it variables, objective function and multiple constraints. This is the ...
josephcasiejr's user avatar
0 votes
4 answers
3k views

Optimization: Farming wheat and rice

This is the problem statement An Indian farmer has a piece of farmland, say L square kilometers long, and wants to either sow wheat or rice or a combination of both. The farmer has a limited amount of ...
xicor's user avatar
  • 21
0 votes
0 answers
42 views

Is lp_solve changing constraints to find a feasible solution?

I use lp_solve Java API to solve a constrained problem, and I have two constraints that would limit the number of selected items in a specified range, such as the following one: +36 S_1 +31 S_2 +20 ...
Abdarhman Taha's user avatar

15 30 50 per page
1
2 3 4 5
7