Dear experts,
I have read the introduction of OptServerLight in the following link. 4 Installation — MOSEK Optimization Server 10.2.8
My questions are as follows:
I start the ‘mskgenhostid.bat’ in the folder ‘E:\MosekBeta11.0.0\11.0\tools\platform\win64x86\bin’, and I get the ‘hostname’ from its output as follows:
Then, I start the ‘optserverlight.exe’ in the folder ‘E:\MosekBeta11.0.0\11.0\tools\platform\win64x86\bin’, and I get the ‘port’ from its output as follows:
Afterwards, I use the command ‘cvx_solver_settings(‘MSK_SPAR_REMOTE_OPTSERVER_HOST’, ‘http://DESKTOP-******:123456’)’ and the code can run correctly.
Using the command ‘MSK_SPAR_REMOTE_OPTSERVER_HOST’ to transfer local Mosek computation tasks to a remote computer for processing, how can I determine if the computation task has been successfully transferred? Additionally, is it possible to perform Mosek computations on both the local and several remote computers simultaneously?
Many thanks for your answer.
However, some issues were encountered while using this command.
local computer:
Windows11 64bit, Matlab2024b, Mosek Beta Version 11.0.0(Personal Academic License)
Memory: 16GB
Server:
Windows10 64bit, Matlab2024a, Mosek Beta Version 11.0.0(Personal Academic License)
Memory: 16GB
Host name: DESKTOP-****
Port:123456(take 123456 as an example of port)
However, the following error message appears:
Mosek error: MSK_RES_ERR_SERVER_PROTOCOL (Unexpected message or data from solver server.)
Now, I have submitted the relevant questions and some screenshots during my operation process.
I have some problems about Mosek OptServerLight. I have read the instructions of Mosek OptServerLight in the link https://docs.mosek.com/latest/opt-server/install-and-run.html#optserverlight . I have tried the method you guided in the Mosek forum. https://groups.google.com/g/mosek/c/SxoiiuWf7Nk
I would like to try to use OptServerLight to transfer the Mosek optimization tasks from computer A to computer B. If the transfer is successful and the code runs correctly, I am considering to rent a high-performance computing server to complete the program calculations, which can prevent code theft.
I provide information related to computers and software:
local computer:
Windows11 64bit, Matlab2024b, Mosek Beta Version 11.0.0(Personal Academic License)
Memory: 16GB
Server(Another computer):
Windows10 64bit, Matlab2024a, Mosek Beta Version 11.0.0(Personal Academic License)
Memory: 16GB
Host name: DESKTOP-****
Port:123456(take 123456 as an example of port)
1. Start the ‘command window’ and type ‘optserverlight -h’, then I can see the following output:
2. According to your suggestion, I type ‘optserverlight.exe -solver-timeout 3600 -max-task 1000 -size-limit 1000000000’ in the command window and press ‘Enter’, then I see:
Does the situation shown in the picture indicate that I have successfully set my own settings?
In addition, is the setting of ‘-max-task’, ‘-size-limit’, ‘-solver-timeout’, etc, based on the local computer or the remote computer? Does the size of the setting depend on the device hardware?