Questions tagged [choco]

An API which allows constraint programming for java programmers. It aims at describing hard combinatorial problems in the form of Constraint Satisfaction Problems and solving them with Constraint Programming techniques

Filter by
Sorted by
Tagged with
1 vote
1 answer
36 views

Minimize error in average of priced resource assignments

Problem definition I need to group resources, where the average price of each group is closest to a given average price. As an input I get a list of resources with price and quantities of each one, ...
Marcelo Grossi's user avatar
0 votes
1 answer
51 views

Installation unsuccessful: Chocolatey installation on VS Code via CMD / Power Shell

I was installing node.js and, during the installation, was given the option to also install Chocolatey. The first issue was, it didn't install. The error will be attached below. I then ran CMD as an ...
Shafin Mahmud's user avatar
0 votes
1 answer
22 views

Creating chocolatey packages for plug-ins of "large" applications

I have a question about using Chocolatey to package plugins for other applications. Say I have a primary application sample-app, and a plugin that can be installed for this sample-app-plugin. ...
Eric Anastas's user avatar
  • 21.7k
0 votes
1 answer
225 views

Unable to retrieve Flare VM packages from myget via Chocolatey on Windows 10

I am trying to install packages for Flare VM on Windows 10 using Chocolatey, but I'm facing issues with the installation. Could you please help me resolve this problem? Here is the output I receive: ...
joan's user avatar
  • 39
0 votes
0 answers
393 views

How to tell Manim to write LaTeX using MikTeX instead TinyTeX?

I have a working Manim CE v0.17.2 installation, but I accidentally uninstall TinyTeX using choco uninstall tinytex in PowerShell (as administrator). As a result, of course, Manim can't write any LaTeX ...
Hanif's user avatar
  • 1
2 votes
1 answer
59 views

How to use this version: 10.1.3.10-1545tr103f5d format in chocolatey nuspec version

How to use version: 10.1.3.10-1545tr103f5d format in chocolatey nuspec version. I want to include git commit id with chocolatey package version.
Avinash Jaiswal's user avatar
0 votes
1 answer
62 views

Installing FreeRDP using chocolatey gives me no executable to run?

I did a choco install freerdp and tried looking for the exe in program files etc There's a folder in the User directory but doesn't contain anything useful
sak2's user avatar
  • 3
0 votes
1 answer
292 views

How to create local cache for choco package manager

I am building a windows docker image and use a package manager called choco for automating package installation. I would like to avoid downloading packages from the internet every time I modify and ...
Alin's user avatar
  • 3
0 votes
2 answers
2k views

chocolatey says it has successfully force reinstalled python 3.11 - but I can't find it

Windows 11. I am not great at virtual environments, and I have bumped around between a half dozen different "solutions." I thought I had it solved with chocolatey, but I am trying to ...
Adam's user avatar
  • 850
0 votes
0 answers
33 views

How to access a Var by it's NAME in Java Choco Solver?

here is my choco solver code: Model model = new Model(); IntVar p1=model.intVar("type",new int[]{45,46,47}); I want to access IntVar p1 by it's Name,which is the String type,not JAVA ...
Fane Xiang's user avatar
1 vote
0 answers
22 views

Why can't I upgrade chocolatey by using the command line "choco upgrade chocolatey"? [duplicate]

I tried to run this command line in Powershell in administrator mode: choco upgrade chocolatey But it returned: Chocolatey v1.1.0 Upgrading the following packages: chocolatey By upgrading, you accept ...
corror's user avatar
  • 53
-1 votes
1 answer
114 views

updating Adobe Acrobat Reader DC using chololatey

"Error upgrading application Adobe Acrobat Reader DC - \nWARNING: Generic MSI Error. This is a local environment error, not an issue with a package or the MSI itself - it could mean a pending ...
Raja Sac's user avatar
0 votes
1 answer
63 views

Is there a way to limit solutions in choco CPSolver 2.1 like there is in Solver 4.10?

I have an old Choco 2.1.4 project and would like to limit the number of solutions solvedto 2 as I am only interested in knowing if there are 0, 1 or more than one solutions and would like to shave ...
lost baby's user avatar
  • 3,178
0 votes
2 answers
128 views

ChocoSolver - Find the minimal number of path to visit all cities

I am using Choco Solver 4.10.8 in Java for a constraint programming problem. The goal is to find the minimal number of path we need to use to visit all the cities in a matrix M which is defined here. ...
MatthieuQcc's user avatar
4 votes
1 answer
509 views

Installing Dolt on Windows 10

I was trying dolt out for windows for a project ran into this error Access to the path 'C:\ProgramData\chocolatey\lib-bad' is denied. I think its was permissions issue. Do you want to continue?([Y]es/[...
Leslie Wubbel's user avatar
1 vote
0 answers
127 views

What are all the duplicate .install packages in chocolatey package manager?

What are all the duplicate .install packages in chocolatey package manager? Is one for local user and the other is for the system or something else? nodejs|16.14.2|17.9.0|false nodejs.install|16.14.2|...
Alex's user avatar
  • 627
5 votes
2 answers
4k views

installation problem - nodejs-lts (exited 1603) - Error while running 'C:\ProgramData\chocolatey\lib\nodejs-lts\tools\chocolateyinstall.ps1'

I'm trying to create an android emulator for react-native, but I'm having some trouble installing some packages when I type in this command: choco install -y nodejs-lts openjdk11 You will find the ...
Adam Breslin's user avatar
0 votes
1 answer
28 views

How can i call cpprofiler in choco-solver for contrainst programming profiling

I found this on choco-solver documentation but i do not know how use it with provided choco-solver sample program in order to profile. NB: I already install cpprofiller in my machine and launch it. So ...
Genereux's user avatar
1 vote
1 answer
1k views

conda create environment command gives 'Found conflicts! Looking for incompatible packages.'

I installed miniconda via choco install miniconda3. Creating a python3 environment works fine. conda create --name envA python=3 --verbose But creating a python2 environment has a problem. conda ...
phreed's user avatar
  • 1,769
0 votes
1 answer
73 views

Choco-solver IntVar declaration : How to declare an IntVar with two(or more) boundedDomain?

IntVar v = model.intVar("v", 1, 12, true); // or v= model.intVar("v", 20, 30, true); I want the value of IntVar v not only in [1,12] but also in [20,30] and in other segment of ...
Yves Cabon's user avatar
0 votes
2 answers
380 views

Is there a python library to use Choco solver from python? Or is it planned in the roadmap?

I work at Air Liquide and we are using choco solver in one of our optimization tool, and it is consequently coded in java. The question has been asked recently of the possibility to migrate the code ...
Laura HOULLEY's user avatar
0 votes
1 answer
133 views

Is there a way to specify '--force' in chocolateyinstall.ps1?

I would like to be able to specify the --force argument within the chocolateyinstall.ps1 file. Currently, in that file I am invoking a batch file and try to append --force in the end but ...
YM_coding's user avatar
0 votes
1 answer
92 views

Choco-Solver: Is there a way to know how many times a constraint is broken during the solving process?

My models is inefficient and taking too long to find valid solutions so I think knowing how many times the constraints are being broken would be useful for testing. Thank you
Eloy's user avatar
  • 1
1 vote
1 answer
135 views

Why doesn't Choco-solver find a solution?

I'm learning to use Choco-solver. I found that it fails to find a solution to a very simple problem, which means that I must have misunderstood something... I reduced my code to this: Model model =...
Rolf Staflin's user avatar
  • 2,112
0 votes
1 answer
130 views

How can i put an experiession to minimize using choco solver?

I use choco solver version 2.1.5, and I want to make an experience to minimize the sum of my variables. How I can do that?
MAJID majid's user avatar
0 votes
1 answer
41 views

Finding the list of unsatisfied constraints in the Choco model

Is there a function in choco that retrieves the list of unsatisfied constraints in the model?
Saman A. Barakat's user avatar
0 votes
1 answer
123 views

Does the Choco-Solver Java library support Parallel Programming?

My constraint problem has become too complex, and I'm looking to know if the Choco-Solver framework which I'm using to model and solve the problem supports a parallel programming approach like multi-...
Eloy's user avatar
  • 1
0 votes
1 answer
111 views

how to check which constraints would be violated by a presumed solution?

In some cases the solver fails to find a solution for my model, which I think is there. So I would like to populate a solution, and then check which constraint is violated. How to do that with choco-...
brunesto's user avatar
  • 430
2 votes
0 answers
854 views

How to bypass all proxy settings for choco

On Windows I've got a proxy set a computer level (netsh winhttp show proxy) and user network level settings > network > proxy. The proxy is denying almost everything. It is being picked by choco ...
Fran's user avatar
  • 3,723
8 votes
4 answers
16k views

" choco install visualstudio2017-workload-vctools " Fails Error: The install of visualstudio2017-workload-vctools was NOT successful

C:\WINDOWS\system32>choco install visualstudio2017-workload-vctools Chocolatey v0.10.15 Installing the following packages: visualstudio2017-workload-vctools By installing you accept licenses for ...
RakeshP-0304's user avatar
1 vote
1 answer
458 views

How do you install meteor with choco?

I'm installing Meteor through Choco and so far it only installs version .0.0.4. I believe it should be installing 1.1? Also it installs an empty Meteor folder. How do you get the proper Meteor version ...
d2webdeveloper's user avatar
1 vote
1 answer
221 views

Deploy VS19 over PowerShell DSC and choco

My goal is to deploy TeamCity agents configuration in Azure with DSC extensions. I'm able to deploy all required apps and services but I can't find how to deploy Visual Studio 19 with its optional ...
Oleh Tarasenko's user avatar
0 votes
1 answer
83 views

Numpy is installed, but astropy says numpy is not installed

An ImportError is thrown when my program searches for Numpy. Yet, numpy is installed as seen by the import numpy working properly. I've tried uninstalling python and numpy and reinstalling with ...
unixcorn's user avatar
  • 384
0 votes
1 answer
66 views

Choco 4: calling a method whenever a Boolean variable gets assigned or unassigned

I have a technical question regarding the Choco 4 CP solver. I would like to call a method (lets call it f()) whenever some Boolean variables in my model are assigned or unassigned during search. The ...
Avi Itzhakov's user avatar
0 votes
1 answer
118 views

How can I can add an arithmetic constraint to my model in chocosolver

I'm new to chocosolver, and i want to add an arithmetic constraint to my model. The probleme is that the constraint contains 6 Invar variables. Here is the constraint: ((A1*B1)+(A2*B2)) / (B1+B2) = ...
Zakaria Zahi's user avatar
1 vote
1 answer
389 views

How i can get sum of variables in choco solver

I have IntVar[] orArea = new IntVar[N]; IntVar[] orCount = new IntVar[N]; IntVar[] orRows = new IntVar[N]; IntVar total_trim = model.intVar("trim", 0, 1000); for (int i = 0; i < N; i++) { ...
Сергей Андреев's user avatar
0 votes
1 answer
258 views

Puppet: how to check in IF condition if a Choco package installed OR a local user exists?

Windows Server environment. We have servers with a Puppet role that installs a specific Choco package. It was decided that the package should not be installed on new servers. The simplest way would be ...
Evgeny's user avatar
  • 43
1 vote
1 answer
357 views

Choco-solver : define a constraint on a part of an intVar

Can we check an equality between 2 partial number with choco solver ? I have a 2 dimensional array, and for each element of it, their domain are different number who have the same form : a number ...
Nairo's user avatar
  • 61
0 votes
1 answer
301 views

Run powershell command from cmd [duplicate]

I want to run a PowerShell command from cmd, because I need to install the Chocolatey package manager from my Python script. Like this: import subprocess as sp choco = sp.Popen(['powershell', 'Start-...
heavyblack1's user avatar
0 votes
1 answer
178 views

Reusing choco solver model to further constrain the solution

I'm using the choco solver library to generate a set of puzzles. I need to run the solver, check how many solutions there are and if there is more than one, add an extra constraint. Repeating this ...
Graham Evans's user avatar
0 votes
0 answers
50 views

how to use Choco to set objective like 3.5X+4.2Y?

I am new to Choco. I found an example online saying showing how to set the object as below // Model objective function 3X + 4Y IntVar OBJ = model.intVar("objective", 0, 999); model.scalar(new IntVar[]...
Laodao's user avatar
  • 1,557
0 votes
1 answer
589 views

Manual reboot & login when Installing packages through choco via powershell script

I've a powershell script which installs some softwares using choco. Softwares like vagrant require reboot of the system and machine reboots on its own. How can I make this process fully automated as ...
Axel's user avatar
  • 113
0 votes
1 answer
353 views

AttributeError: 'module' object has no attribute 'PROTOCOL_TLSv1_2' on windows when using coursera-dl package

i wanted to download from coursera using coursera-dl package on windows it kept giving that message AttributeError: 'module' object has no attribute 'PROTOCOL_TLSv1_2' so i searched through ...
user avatar
0 votes
1 answer
91 views

Choco solver logging

I'm trying the Choco solver (version 4.10.1) for the first time, and I don't know how to enable logging for the solver. I've added slf4j-log4j12 dependency and a log4j.properties file. For older ...
jack malkovick's user avatar
0 votes
1 answer
238 views

Use IntVar as index of IntVar[] array in a constraint

I want to use the value of an IntVar as an index of another IntVar array in a constraint, using Choco Solver. I have an IntVar who contains the next task who follow the i-th task And I have another ...
ingambe's user avatar
  • 26
1 vote
0 answers
2k views

Chocolatey - not able to find package from Artifactory

I am trying to install package using Chocolatey, and I am stuck at getting the package from artifactory. I confirmed that my.package.1.0.0.nupkg is available in the URL: https://www.myarti.com/...
Adrian's user avatar
  • 836
0 votes
0 answers
831 views

How to install chrome in custom location using chocolatey

I want to install chrome in a custom location by using chocolatey, but I can't figure out how to do it. I know I have to use choco install googlechrome --installargs "<someargs>" but I can ...
Tobias von Falkenhayn's user avatar
0 votes
1 answer
334 views

Create Chocolatey Package and perform installation multiple times

I want to use chocolatey to manage my windows application installer. However, my application requires multiple times installation with different parameters. I wonder is it possible to be achieved by ...
weijie lin's user avatar
0 votes
0 answers
73 views

sum variable Σ Xik = Σ Xkj for i=j=k=1…N, in one constraint with choco

I am using choco to solve a CSP , and one of my constraints is that the sum of one variables Σ Xik = Σ Xkj for i=j=k=1…N. How do I accomplish this? thank you for your help.
Morad's user avatar
  • 3
-1 votes
1 answer
401 views

sum one variable (X[i][j]) in one constraint with choco

I am using choco to solve a CSP , and one of my constraints is that the sum of one variables (X[i][j]) is less than N=10, and i=j=1....N. How do I accomplish this? thank you for your help. sum(X[i][...
Morad's user avatar
  • 3